Making mailer settings more robust.