renamed mailer and added template