injecting mailer dependency