Fixed the Mailer using log