smtp gmail server php mailer not working

喜夏-厌秋 提交于 2019-12-02 09:40:54

If you’re sure your password is correct, you can try these troubleshooting tips:

  • If you've turned on 2-Step Verification for your account, you might need to enter an App password.
  • Sign in to your account from the web version of Gmail at https://mail.google.com. Afterwards try accessing your messages in your mail app again.
  • If you're still having problems, visit http://www.google.com/accounts/DisplayUnlockCaptcha and sign in with your Gmail username and password. If necessary, enter the letters in the distorted picture.
  • Your mail app might not support the latest security standards. Learn how to allow less secure apps access to your account.
  • Make sure your mail app isn't set to check for new email too frequently. If your mail app checks for new messages more than once every 10 minutes, the app’s access to your account could be blocked.
  • Try changing your password according to our tips on creating a strong password.

Source.

Here, you can allow less secure apps. Click on Turn On to allow less secure apps having your username and password.

If you are facing similar issue
Try this out:

If you had your password last modified before 2014 change your password to stronger one.

It worked for me

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!