Now emails are not sent if the environment is running tests