Check when trying to send email.