phpMailer email not sending gmail smtp

徘徊边缘 提交于 2019-12-01 09:20:54

I oftent faced this problem, GMAIL does not allow to send email using script. Login and check the email you are using in code to see if you get notice of malicious activity on your account. If yes then, I solved this issue by loging in the GMAIL from my HOST and allowing it to send mail using the email.

Not sure this is applicable to your problem

Check your Gmail / Accounts & Import / Other Google Account Settings

Some apps and devices use less secure sign-in technology, which makes your account more vulnerable. You can turn off access for these apps, which we recommend, or turn on access if you want to use them despite the risks. Learn more

Access for less secure apps Turn off Turn on

Change to "Turn on"

Had the same problems but now it works for me.

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