Making the email sending routine a lot safer.