added code for email updates
Merge remote-tracking branch 'remotes/origin/send_email_updates'