把gmail服务当作bounce server 不是一个好主意,临时测试就无所畏了。通常的配置如下:
同时要注意gmail中的设置:
即使是这样,可能也会报错:GMail IMAP NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)
解决办法:
GMail IMAP NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)
To enable “Less Secure Apps” in your Google account, go to your Google Account Security Settings at https://myaccount.google.com/security
Scroll down and look for the “Less Secure Apps” section:
Click on “Turn on access” and then turn on access