adding mailer
minor changes