Added debug flag to Mailer, added MailerMock object