ADDED  ajax function for sending mail