gpt4 book ai didi

php - codeigniter 电子邮件功能 smtp 错误

转载 作者:行者123 更新时间:2023-12-04 20:25:25 26 4
gpt4 key购买 nike

我一直在使用 codeigniter 电子邮件功能发送我的电子邮件,但我收到了警告

电子邮件的配置文件是:

$config['mailtype'] = 'html';
$config['charset'] = 'utf-8';
$config['newline'] = '\r\n';
$config['smtp_host']='ssl:server address';
$config['smtp_user']='noreply@some.com';
$config['smtp_pass']='iamnotreplying';
$config['smtp_port']=465;

我收到一条警告说

Warning: fwrite() [function.fwrite]: SSL: Connection reset by peer in /home/.../public_html/.../system/libraries/Email.php on line 1846
Warning: fwrite() [function.fwrite]: SSL operation failed with code 1. OpenSSL Error messages: error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry in /home/../public_html/.../system/libraries/Email.php on line 1846

我的电子邮件文件配置有什么问题。

提前致谢阿密斯

最佳答案

尝试在配置中添加它。

$config['smtp_crypto'] = 'ssl';
$config['protocol'] = 'smtp';

关于php - codeigniter 电子邮件功能 smtp 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21325908/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com