Readded Mailer class

Tested, and it builds and works