move mailer to controller - it is a view after all