Adding the mailer code