codeigniter 来自:550 Access denied - Invalid HELO name(See RFC 2821 4.1.1.1)

v1uwarro  于 4个月前  发布在  其他
关注(0)|答案(1)|浏览(42)

from:550 Access denied - Invalid HELO name(See RFC 2821 4.1.1.1)遇到以下SMTP错误:550 Access denied - Invalid HELO name(See RFC 2821 4.1.1.1)quit:遇到以下SMTP错误:无法使用PHP SMTP发送电子邮件。您的服务器可能未配置为使用此方法发送邮件。

下面是在Codeigniter PHP中发送电子邮件的代码

$config = array();
        $config['mailpath'] = '/usr/sbin/sendmail';
        $config['wordwrap'] = 'TRUE';
        $config['mailtype'] = 'html';
        $config['priority'] = '1';
        $config['crlf'] = "\r\n";
        $config['auth'] = TRUE;
        $config['helo'] = NULL;
        $config['protocol'] = 'smtp'; 
        $config['smtp_host'] = SMTP_SERVER_ADDRESS; 
        $config['smtp_user'] = SMTP_USERNAME; //$smtp_user;
        $config['smtp_pass'] = SMTP_PASSWORD; //$smtp_pass; 
        $config['smtp_port'] = SMTP_PORT_NUMBER; //$smtp_port;
        $config['smtp_auth'] = 'TRUE';
        $this->load->library('email');
        $this->email->initialize($config);
        $subject = $email_data["mail_title"];
        $message = $email_data["mail_body"];

字符串
如何修复此错误在发送电子邮件使用谷歌邮件

f2uvfpb9

f2uvfpb91#

我得到了相同的错误550-无效的直升机名称,但问题是密码不正确。
使用webmail检查您的用户名+密码是否正确。

相关问题