updated the email mailer for notifications