1. 开启GMAIL的POP3 IMAP

点设置

wKiom1TE5d3Ss8sVAAA-B4iYePg825.jpg


wKioL1TE5yHDIm2-AAM4hGDWbPI410.jpg


2. 安全

wKioL1TE54eS8U8iAABEE1A8uME253.jpg

应用专用密码可以填入phpmail里.


==================================================

错误提示:

SMTP -> ERROR:Password not accepted from server.
Code: 535
Reply: 535-5.7.1 Please log in with your web browser and then try again.

SMTP -> ERROR: Password not accepted from server: 534-5.7.14
Please log 534-5.7.14 in via your web browser and then try again. 534-5.7.14 Learn more at https://support.google.com/mail/bin/answer.py?answer=787 534 5.7.14 54 tr10sm54899095pbc.22 - gsmtp

https://accounts.google.com/b/0/DisplayUnlockCaptcha



gmail 问了防止别人破解密码 即便密码正确 也会封, 比如服务器的ip变了。



==================================================

论坛发邮件提示错误:Couldn't get mail server response codes

解决办法:

修改Sources/Subs-Post.php里:

// EHLO could be understood to mean encrypted hello...
// if (server_parse('EHLO ' . $modSettings['smtp_host'], $socket, null) == '250')
if (server_parse('EHLO ' . 'localhost', $socket, null) == '250')


参考链接1   参考链接2