application controller for mailer
updated mailer