Unable to send email in Joomla using Gmail SMTP settings. Getting SMTP server error: 5.5.1 Authentication Required. How to fix this?

北慕城南 提交于 2019-12-22 18:36:33

问题


MY joomla contact form gmail SMTP settings not working..see below that message showing when submitting contact form. What should be the reason? extension=php_openssl.dll also enabled..

Error message -:
SMTP server error: 5.5.1 Authentication Required. Learn more at 530 5.5.1 http://support.google.com/mail/bin/answ ... swer=14257 c6sm7639242obl.22

I used these settings in joomla mail settings

Mailer: smtp
SMTP Authentication: yes
SMTP Security: SSL
SMTP Port: 465
SMTP Username: My gmail full address
SMTP Password: My gmail password
SMTP Host: smtp.gmail.com


回答1:


You'll need to enable 2FA in google and use the following settings.

You will need to generate an application specific password after configuring 2 factor authentication and use as password in the SMTP configuration

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=<<your email address>>
MAIL_PASSWORD=<<app password>>
MAIL_ENCRYPTION=tls



回答2:


The first time you attempt to connect programmatically through an Application Google will block it and send you an alert from your account.

Sign into that account through your browser and select approve the sign-in and you should be okay.




回答3:


Go to - "https://www.google.com/settings/security/lesssecureapps" while you are logged in to gmail and from same browser. Click on "Turn On".



来源:https://stackoverflow.com/questions/18124669/unable-to-send-email-in-joomla-using-gmail-smtp-settings-getting-smtp-server-er

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