SMTP错误(220-我们未授权使用此系统传输未经请求的220和/或批量电子邮件。) [英] SMTP Error(220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.)

查看:589
本文介绍了SMTP错误(220-我们未授权使用此系统传输未经请求的220和/或批量电子邮件。)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前正在使用CodeIgniter 2.2.2,并且我的控制器中包含以下代码:

I am current using CodeIgniter 2.2.2 and I have the following code inside my controller:

        $config['protocol'] = "smtp";
        $config['smtp_host'] = "mail.domain.com";
        $config['smtp_port'] = "25";
        $config['smtp_user'] = "noreply@somedomain.com"; 
        $config['smtp_pass'] = "password";
        $config['charset'] = "utf-8";
        $config['mailtype'] = "html";
        $config['newline'] = "\r\n";
        $config['wordwrap'] = TRUE;
        $this->load->library('email');
        $this->email->initialize($config);

        $this->email->set_mailtype('html');
        $this->email->from('noreply@somedomain.com', 'www.somedomain.com');
        $this->email->to('someEmail');


        $this->email->subject('Email Authentication');
        $message = 'Hi';

        $this->email->message($message);

        $this->email->send();

我尝试使用端口465和ssl://xxxxxxx.prod.iad2.secureserver.net。但是我一点都没有运气。我尝试联系客户服务,但没有。除了给我链接到我已经知道的东西之外,他们真的对我没有多大帮助。
为什么收到消息?这阻止了我向其他电子邮件地址发送电子邮件。
有人可以帮忙吗?

I tried using port 465, and ssl://xxxxxxx.prod.iad2.secureserver.net. But i am getting no luck at all. I tried contacting the customer service, but nope. They really didn't help me much other than giving me links into things I already knew. Why am I getting the message? It is preventing me to send email to my other email addresses. Can anyone please help here?

推荐答案

我遇到了同样的问题。经过一番研究,我发现对我来说解决方案是:

I'm having the same problem. After some research I found that the solution for me was:

 $config['protocol'] = "mail";
 $config['smtp_port'] = 587;

这篇关于SMTP错误(220-我们未授权使用此系统传输未经请求的220和/或批量电子邮件。)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆