Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/232.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Gmail在PHP上发送电子邮件时发生SMTP错误_Php_Mysql - Fatal编程技术网

使用Gmail在PHP上发送电子邮件时发生SMTP错误

使用Gmail在PHP上发送电子邮件时发生SMTP错误,php,mysql,Php,Mysql,错误: 我在使用Gmail域通过我的PHP脚本发送邮件时遇到此错误。请检查您的PHP配置,并查看是否安装/启用了PHP\u openssl.dll。您安装的PHP不支持您需要的SSL加密。欢迎使用堆栈溢出!请张贴与问题相关的代码。您可以通过编辑自己的问题并将其添加到问题正文中来完成此操作。它将帮助我们帮助您。需要打开php.ini并找到行“extension=php\u openssl.dll”;只需删除“;”。谢谢@格雷格·P解决了这个问题。正在等待收到电子邮件!很高兴我能帮忙-希望你“接受”

错误:


我在使用Gmail域通过我的PHP脚本发送邮件时遇到此错误。

请检查您的PHP配置,并查看是否安装/启用了PHP\u openssl.dll。

您安装的PHP不支持您需要的SSL加密。欢迎使用堆栈溢出!请张贴与问题相关的代码。您可以通过编辑自己的问题并将其添加到问题正文中来完成此操作。它将帮助我们帮助您。需要打开php.ini并找到行“extension=php\u openssl.dll”;只需删除“;”。谢谢@格雷格·P解决了这个问题。正在等待收到电子邮件!很高兴我能帮忙-希望你“接受”答案:)
SMTP -> ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (18313040)
SMTP Error: Could not connect to SMTP host. no photos' requests in pending!