updated for email_data in json post