Added some checking to the from name when sending mail.