only try to send email on non dev envs