added action mailer functionality