且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用PHPMailer和GMAIL SMTP发送电子邮件

更新时间:2021-12-12 22:09:45

如上所述,我已经通过摆脱;来启用了ssl;与php_openssl.dll并重新启动Apache.我做了一些进一步的阅读,发现在启用命令之前,有些人也有"[PHP_OPENSSL]".我添加了它并重新启动了Apache,一切正常!感谢您的所有评论

As I mentioned above I had already enabled ssl by getting rid of the ; on the line with php_openssl.dll and restarting Apache. I did some more reading and I found out that some people also had "[PHP_OPENSSL]" before the enabling command. I added it and restarted Apache and everything is working! Thanks for all the comments

在php.ini中:

[PHP_OPENSSL]
extension=php_openssl.dll