PHP使用smtp发送邮件报错Unable to find the socket transport ‘ssl’


Unable to find the socket transport 'ssl' - did you forget to enable it when you configured PHP?

该错误表明PHP不支持openssl,解决办法:
windows下,在php.ini中打开openssl扩展;
linux下,重新编译php,编译时加上参数--enable-ssl(具体参看configure的help)

Archives