简体   繁体   English

OpenCart电子邮件配置错误

[英]Opencart email configure error

I am using Opencart 2.3.0.2 I have added the following details under system/settings/mail 我正在使用Opencart 2.3.0.2,我在系统/设置/邮件下添加了以下详细信息

Mail Protocol: smtp
Mail Parameters: -fmyemail@gmail.com
SMTP Hostname : ssl://smtp.gmail.com
SMTP Username : myemail@gmail.com
SMTP Password : my email password
SMTP Port : 465
SMTP Timeout : 5

But Still I am not able to receive the email alert and get the following error "Warning: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Network is unreachable) in ..../store/system/library/mail.php on line 167" when i try to send the enquiry through contact form. 但是仍然无法接收电子邮件警报,并收到以下错误“警告:fsockopen():无法连接到.... / store中的ssl://smtp.gmail.com:465(网络无法访问) /system/library/mail.php在第167行上”,当我尝试通过联系表发送查询时。

Could anybody please help me. 有人可以帮我吗。

Try the below settings in Opencart 在Opencart中尝试以下设置

SMTP Hostname: tls://smtp.gmail.com
SMTP Port: 587

If the above doesn't work try doing below with your existing settings. 如果上述方法不起作用,请尝试使用现有设置进行以下操作。

Go to Gmail and login to the account that you used for your SMTP configuration. 转到Gmail并登录到用于SMTP配置的帐户。 Once logged in, go to “ https://accounts.google.com/b/0/DisplayUnlockCaptcha 登录后,转到“ https://accounts.google.com/b/0/DisplayUnlockCaptcha

Give it access to use GMail. 授予其使用GMail的权限。 Go back & try again submitting the contact form. 返回并再次尝试提交联系表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM