无法在codeigniter中从localhost发送电子邮件

时间:2022-10-06 19:20:53

I am trying to send email in codeigniter on localhost, But it shows following error. I have configured the email library and gmail account. any one have solution for this.

我试图在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

1 个解决方案

#1


0  

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不能在localhost上工作

#1


0  

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不能在localhost上工作