脚本宝典收集整理的这篇文章主要介绍了php – Zend Mail Gmail SMTP,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
$config = array( 'ssl' => 'tls','port' => 587,'auth' => 'login','username' => 'webmaster@mydomain.COM','password' => 'password' ); $smtpConnection = new Zend_Mail_Transport_Smtp('smtp.gmail.com',$config);
错误:
警告:stream_socket_enable_crypto()[streams.crypto]:此流不支持206行/library/Zend/Mail/PRotocol/Smtp.PHP中的SSL /加密
无法通过TLS连接
我试着告诉我的托管服务提供商在Phi.ini中启用OPEnssl.dll
但他们说这不是必需的,因为服务器在Linux中,并且它不需要启用openssl.dll来使用TLS或SSL.
提前致谢
法比安
在Linux上,您需要使用OpenSSL支持编译PHP.
http://www.php.net/manual/en/openssl.installation.php
以上是脚本宝典为你收集整理的php – Zend Mail Gmail SMTP全部内容,希望文章能够帮你解决php – Zend Mail Gmail SMTP所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。