adjusted the automated email mailer