|
本帖最后由 635265428 于 2014-12-23 11:17 编辑
原本是OK的,换了台服务器就报错了:
A PHP Error was encounteredSeverity: Warning
Message: fsockopen(): unable to connect to ssl://smtp.exmail.qq.com:465 (Permission denied)
Filename: libraries/Email.php
Line Number: 1689
A PHP Error was encounteredSeverity: Warning
Message: fwrite() expects parameter 1 to be resource, boolean given
Filename: libraries/Email.php
Line Number: 1846
A PHP Error was encounteredSeverity: Warning
Message: fgets() expects parameter 1 to be resource, boolean given
Filename: libraries/Email.php
Line Number: 1869
A PHP Error was encounteredSeverity: Warning
Message: fwrite() expects parameter 1 to be resource, boolean given
Filename: libraries/Email.php
Line Number: 1846
……
email类配置如下:
$config = array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.exmail.qq.com',
'smtp_user' => 'xxx@xxx.com',
'smtp_pass' => 'xxx',
'smtp_port' => '465',
'charset' => 'utf-8',
'wordwrap' => TRUE,
'mailtype' => 'html',
'crlf' => "\r\n",
'newline' => "\r\n"
);
|
|