Refactor mailer for admin