Earlier i was able to send the mail through PHP code. But now it's not working. While debug, i came to know that we can't use gmail from 30th May onward. It's showing Less secure app access is not available from 30th May. Could you please tell what to do for sending mail through PHP.