added the mailer class and added specs.
removed debugging