this is new ajax file created to send event data to back end for the email creation