[英]Unable to send email from localhost in codeigniter
我正在尝试在本地主机上的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
你得到这个错误
unable to connect to ssl://smtp.gmail.com:465
因为如果您要检查邮件是否已发送,则smtp在本地主机上不起作用,而不是您必须在实时托管服务器上
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.