update mailer to send mails via Mandrill. refactor.