Mock Mailer for tests.