简体   繁体   English

发送电子邮件codeigniter问题

[英]sending email codeigniter issue

I am trying to send emails to huge number of users (11000) and I can't send except 300 email per hour so I made that code: 我正尝试将电子邮件发送给大量用户(11000),并且每小时只能发送300封电子邮件,所以我做了如下代码:

$query_users = $this->db->query('SELECT * FROM `users_list` ');

    foreach ($query_users->result() as $row)
            {
                    $this->email->to($row->email);
                    $this->email->send();

                if($row->id % 300 ==0) { sleep(3600);}  

            }

but I got every hour 300 spam email in my account (as I am sending from it) saying: 但是我每小时(从我发送的邮件)中收到300封垃圾邮件,其中说:

A message that you sent was rejected by the local scanning code that checks incoming messages on this system. 您发送的消息被检查该系统上传入消息的本地扫描代码拒绝。 The following error was given: 给出以下错误:

This message was classified as SPAM and may not be delivered 此邮件被归类为垃圾邮件,可能无法传递

Note: when I try to send email to specific person, it's sent correctly. 注意:当我尝试发送电子邮件给特定的人时,它已正确发送。 I don't know how to solve this issue, any help? 我不知道如何解决这个问题,有什么帮助吗?

For the most part, I don't open e-mails where the Subject: field is blank unless I immediately recognize the Sender. 在大多数情况下,除非我立即认出发件人,否则我不会在“主题:”字段为空白的情况下打开电子邮件。 Most non-subjected e-mails are spam. 大多数非主题电子邮件都是垃圾邮件。 Not having a Subject: therefore makes you look spammy and generally will have your e-mail end up in my Junk or Trash folder when it is misidentified as spam. 没有主题:因此使您看起来垃圾邮件,通常当您的电子邮件被误识别为垃圾邮件时,它们最终会出现在“垃圾邮件”或“垃圾箱”文件夹中。

I had this happen several times the past couple of weeks and when I kindly let those who sent me the e-mails know that they should always use a Subject so they don't look spammy and have spam filters send their e-mail (to me or anyone else) to trash without being read. 在过去的几周中,我几次发生过这种情况。当我好心地让那些向我发送电子邮件的人知道,他们应该始终使用“主题”,这样他们就不会显得垃圾邮件,并且让垃圾邮件过滤器发送电子邮件(以我或其他任何人)丢弃而不被阅读。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM