无法使用Gmail SMTP设置在Joomla中发送电子邮件.正在获取SMTP服务器错误:5.5.1需要身份验证.如何解决这个问题? [英] Unable to send email in Joomla using Gmail SMTP settings. Getting SMTP server error: 5.5.1 Authentication Required. How to fix this?
问题描述
我的joomla联系人表格gmail SMTP设置不起作用.请参阅下面的消息,其中显示了提交联系人表格时的消息.应该是什么原因? extension = php_openssl.dll也已启用..
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..
错误消息-:
SMTP服务器错误:5.5.1需要身份验证.在530 5.5.1中了解更多信息 http://support.google.com/mail/bin/answ ... swer = 14257 c6sm7639242obl.22
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
我在joomla邮件设置中使用了这些设置
I used these settings in joomla mail settings
邮件:smtp
SMTP身份验证:是
SMTP安全:SSL
SMTP端口:465
SMTP用户名:我的Gmail完整地址
SMTP密码:我的Gmail密码
SMTP主机:smtp.gmail.com
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
推荐答案
您需要在Google中启用2FA并使用以下设置.
You'll need to enable 2FA in google and use the following settings.
配置2因子身份验证后,您将需要生成应用专用密码,并在SMTP配置中用作密码
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
这篇关于无法使用Gmail SMTP设置在Joomla中发送电子邮件.正在获取SMTP服务器错误:5.5.1需要身份验证.如何解决这个问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!