1. Please make sure you have set SMTP authentication correctly in your script, for sample code, please click here
2. If there is no problem with your SMTP script, but you still got the message message mentioned above, it should because Gmail blocked the authentication from our server as it detected that it is the first time you login to your Gmail account from another Country or Location. You will need to login to gmail security center to approve the authntication. Once you approved it , please wait a few minutes then sending email from script again. Here are the steps to approve the "Unusual activity alerts" from gmail security center.
a) go to gmail security center via this link blow or google search for "gmail secrity" and login with your gmail account
https://accounts.google.com/ServiceLogin?elo=1
b) next to "security" / "Recent activity" , click to "view all events"
c) You will able to see "Unusual Activity" , it will show all unusual activity events, select related event and approval it via click " Yes, That was me!"
3.d)In the "Security"/"Account permission", click to the "Settings" button to enable the "Access for less secure apps".
2. If there is no problem with your SMTP script, but you still got the message message mentioned above, it should because Gmail blocked the authentication from our server as it detected that it is the first time you login to your Gmail account from another Country or Location. You will need to login to gmail security center to approve the authntication. Once you approved it , please wait a few minutes then sending email from script again. Here are the steps to approve the "Unusual activity alerts" from gmail security center.
a) go to gmail security center via this link blow or google search for "gmail secrity" and login with your gmail account
https://accounts.google.com/ServiceLogin?elo=1
b) next to "security" / "Recent activity" , click to "view all events"
c) You will able to see "Unusual Activity" , it will show all unusual activity events, select related event and approval it via click " Yes, That was me!"
3.d)In the "Security"/"Account permission", click to the "Settings" button to enable the "Access for less secure apps".
No comments:
Post a Comment