Adding functionality to mailer