Fobwebs.com 教你如何在OPENCART 后台设置GMAIL 账号用来发送邮件(客户注册,下订单,评论以及在contact us 页面留言的提醒邮件):
重点看粗体字部分。
1. Login to your Opencart Admin Page and navigate to System > Settings > Edit > Mail
2. Once you have opened up the Mail Settings tab you should complete the form using the following data:
Mail Protocol should be set to SMTP
Mail Parameters is an optional field we will not be discussing. You can leave it blank for now.
SMTP Host should be set to “ssl://smtp.gmail.com”
It is very important you include “ssl://” or your customers will receive errors when completing actions on your store that use the mail feature.
SMTP Username should be set to the account username for the Gmail account you would like to use. “[email protected]”
SMTP Password should be the corresponding password for your Google Account
SMTP Port should be “465″
This is also important as it’s a great feature of Google’s SMTP service. As it does not use port 20 it keeps your emails from being marked as spam.
SMTP Timeout you can leave set to the default of 5.
That is all that must be completed from the Opencart admin. You can now hit save and move on to the next step.
光在OPENCART 后台设置是不够的,还需要登录到GMAIL,然后到这个页面:
https://myaccount.google.com/
在“Sign-in & security” 下面有个”Apps with account access“,点进去。 有个选项
”Allow less secure apps“
这个必须勾上。。。。如果你的账号中没有这个选项,,,那么按下面的步骤来:
3. Go to Gmail and login to the account that you used for your SMTP configuration in Step 2.
Once logged in, go to “https://accounts.google.com/b/0/DisplayUnlockCaptcha“
Click continue.
点击了上面的链接后,”Allow less secure apps“ 这个选项就会在你的GMAIL 账户中显示出来了。记得再去勾上。
That’s it! You’re all set up!
If you receive any errors, make sure you completed step 3 to have your store authenticated with Google, as well as used ssl:// before your host name in the Opencart admin mail settings.