ajax call to send mail is successful, but does not do anything