简体   繁体   English

无法从Codeigniter中的本地主机发送电子邮件

[英]Unable to send email from localhost in codeigniter

I am trying to send email in codeigniter on localhost, But it shows following error. 我正在尝试在本地主机上的codeigniter中发送电子邮件,但显示以下错误。 I have configured the email library and gmail account. 我已经配置了电子邮件库和Gmail帐户。 any one have solution for this. 任何人都有解决方案。

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

you getting this error 你得到这个错误

unable to connect to ssl://smtp.gmail.com:465 

because smtp is not working on localhost if u want to check whether mail is send or not than u have to on live hosting server 因为如果您要检查邮件是否已发送,则smtp在本地主机上不起作用,而不是您必须在实时托管服务器上

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM