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
If your are using gmail.
1-logon to your account
2- browse this link
3- Allow less secure apps: ON
Enjoy....