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


SMTP error using Gmail to send email on PHP

错误:

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! 

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

检查您的 PHP 配置,查看是否已安装/启用php_openssl.dll。