If you want to use Gmail to send email for your website, you will need to use SMTP to configure Gmail as a sender.
But your functions can’t log in Gmail, because the security options in Gmail. You need to unlock it if you want to use Gmail for your website. Here is the steps:
1) Unlock Captcha
- Open Gmail from a browser and only sign into the account you’re trying to add. Be sure to be signed out of all your other accounts
- Go to this link: https://accounts.google.
com/b/0/displayunlockcaptcha and click Continue.
2) Less Secure Apps
If that isn’t working, you may also need to enable Access for less secure apps. That option is found on your Security page of your Google account, under “Access for less secure apps.”
Hope it will work for you 🙂
- January 13, 2016 @ 15:05:53 [Current Revision] by admin
- January 13, 2016 @ 15:05:53 by admin