Adjusted the autmoated email mailer