【发布时间】:2018-08-21 18:04:19
【问题描述】:
我使用 Xampp,我想用 phpmailer 发送电子邮件。
我的错误已发出:
缺少扩展:openssl
邮件程序错误:缺少扩展名:openssl
我在 php.ini 中进行了所有设置:;extension=php_openssl.dll 到 extension=php_openssl.dll
并重新启动 apache。
我的问题是什么? 谢谢!!
---更新----
似乎已经在 OpenSSL 问题中解决了。 现在我收到以下错误消息:
2018-03-15 09:24:02 连接:打开 smtp.gmail.com:465, timeout=300, options=array() 2018-03-15 09:24:02 连接:打开 2018-03-15 09:24:13 服务器-> 客户端: 2018-03-15 09:24:13 SMTP 通知:EOF 在检查是否已连接时被捕获 2018-03-15 09:24:13 连接:关闭 SMTP 错误:无法连接到 SMTP 主机。 SMTP 连接()失败。 https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting 邮件程序错误:SMTP 连接()失败。 https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
【问题讨论】:
-
您是否真的安装了 OpenSSL 或仅启用了可能存在或不存在的扩展? phpinfo 是否告诉你 OpenSSL 正在工作?
-
在你的 php.ini 中找到
extension_dir = "ext"并将其更改为:extension_dir = "c:/php710/ext"
标签: php email openssl phpmailer