我正在尝试在localhost上的codeigniter中发送电子邮件,但它显示以下错误。我已经配置了电子邮件库和gmail帐户。任何人都有解决方案。
A PHP Error was encountered
Severity: Warning
Message: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.gmail.com:465 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)
Filename: libraries/Email.php
Line Number: 1689
答案 0 :(得分:0)
您收到此错误
unable to connect to ssl://smtp.gmail.com:465
因为如果你想检查是否,smtp不能在localhost上工作 在现场托管服务器上发送或不发送邮件