I am using following code to send email. The Code works correctly in my local Machine. But on Production server i am getting the error message
var fromAddres
You should disallow less secure apps to access your google account.
to do:
https://myaccount.google.com/lesssecureapps