Mailer setup
Generator cleanup
Implementation and spec for mailer