Submit mails with ajax request