Define mailer in controller