refactors the mailer a bit, now allows passing of message / title