更新时间:2022-11-06 22:37:05
在我的情况下,PHP中缺少SSL支持,给出了这个错误。
In my case it was a lack of SSL support in PHP which gave this error.
所以我启用了 extension = php_openssl.dll
$ mail-> SMTPDebug = 1;
还暗示
更新2017
$ mail-> SMTPDebug = 2;
,请参阅: https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting#enabling-debug-output