Fix smtp variable names and email address object when sending an e-mail.