|
本地环境发送正常,虚拟机里面装的centos7也发送正常,但在服务器上就报错,服务器是谷歌云,报错如下:
A PHP Error was encountered
Severity: Warning
Message: fsockopen(): unable to connect to ssl://smtp.163.com:465 (Connection timed out)
Filename: libraries/Email.php
Line Number: 2055
Backtrace:
File: /home/www/html/wuanlife_api/application/controllers/User.php
Line: 976
Function: send
File: /home/www/html/wuanlife_api/application/controllers/User.php
Line: 846
Function: send
File: /home/www/html/wuanlife_api/application/core/MY_Controller.php
Line: 740
Function: call_user_func_array
File: /home/www/html/wuanlife_api/index.php
Line: 324
Function: require_once
The following SMTP error was encountered: 110 Connection timed out
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method
有什么办法解决吗?改crlf和newline的方法试过了,不行。有没有和我碰到一样情况的?
|
|