Put send_mail under a try so that local testing is not affected