Mailer class moved to lib