removed unnecessary mailer, fixed syntax