2012-06-12 60 views
0

错误:SMTP错误,请大家帮帮忙

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脚本发送邮件时,我得到这个错误。

请帮忙,我要在午夜前提交我的项目。

+0

使用PHPMailer? – 2012-06-12 16:57:46

+0

您安装的PHP不支持您需要的SSL加密。 – Quentin

+0

欢迎来到Stack Overflow!请发布与问题相关的代码。你可以通过编辑你自己的问题并在问题的主体中添加它。它会帮助我们帮助你。 –

回答

1

检查你的PHP配置,看到php_openssl.dll已安装/启用。

+1

需要打开php.ini并找到该行“; extension = php_openssl.dll”;只要删除';'。 – 2012-06-12 17:02:50

+0

thankx! @greg P解决了这个问题。等待收到电子邮件! –

+0

很高兴我能帮助 - 希望你“接受”答案:) – GDP

相关问题