Mail is working on ajax