Mailer separated out into callback-able function.