integrated mailer template and created mailer generator