Mailer

Mailer code, good enough for now