包含多个收件人的PHP邮件; / var / log中的maillog显示消息" To To Many Recipients ..."

时间:2016-02-25 00:02:49

标签: php email sendmail

我有一段PHP代码在我的主机上运行,​​这是一个CentOS系统,如下所示:

$emails = json_decode(file_get_contents("email_list.txt"), true);
$email_list = implode(', ', $emails);
$subject = "OCI - system heartbeat failure detected";
mail($email_list, $subject, $message);

$ email_list显示正确,它在调试中显示:
" paul.smith@ourcompany.com,don.smith @ ourcompany.com,neal.smith @ ourcompany.com,adam.smith @ ourcompany.com"

上面的字符串是正确的 - 每个电子邮件地址用逗号分隔太空......我只是像上面那样做了4个电子邮件地址。

但在我的centOS maillog - / var / log / maillog中 - 我收到的消息说“To To Many Recipients”会看到下面maillog的最后一部分 - 如果有必要,我可以附上整个日志文件吗?

问题是上面的$ email_list字符串的电子邮件地址上的最后一封电子邮件是否正在接收电子邮件?为什么其他人没有收到电子邮件?这曾经使用多个电子邮件,就像现在使用email1,email2,email3,......

一样

以下是日志文件的简短部分,其中显示了" To To Many Recipients"消息 - 注意名称和域名已被更改以保护无辜者:

to = paul.smith @ mycompany.com,don.smith @ mycompany.com,adam.smith @ mycompany.com,neal.smith @ mycompany.com,ctladdr = webmaster @ xxxxxx.net(48/48), delay = 00:00:00,xdelay = 00:00:00,mailer = relay,pri = 120317,relay = [127.0.0.1] [127.0.0.1],dsn = 2.0.0,stat = Sent(u1ONF1DA006037消息已接受2月24日15:15:02 cloud sendmail [6039]:STARTTLS = client,relay = mycompany-com.mail.protection.outlook.com。,version = TLSv1 / SSLv3,verify = FAIL,cipher = ECDHE-RSA -AES256-SHA384,bits = 256/256 Feb 24 15:15:02 cloud sendmail [6039]:u1ONF1DA006037:to =,delay = 00:00:01,xdelay = 00:00:01,mailer = esmtp,pri = 210670,relay = mycompany-com.mai ... ction.outlook.com。 [207.46.163.215],dsn = 4.5.3,stat = Deferred:452 4.5.3收件人太多(AS780090)2月24日15:15:02 cloud sendmail [6039]:u1ONF1DA006037:to =,delay = 00:00: 01,xdelay = 00:00:01,mailer = esmtp,pri = 210670,relay = mycompany-com.mai ... ction.outlook.com。 [207.46.163.215],dsn = 4.5.3,stat = Deferred:452 4.5.3收件人太多(AS780090)2月24日15:15:02 cloud sendmail [6039]:u1ONF1DA006037:to =,delay = 00:00: 01,xdelay = 00:00:01,mailer = esmtp,pri = 210670,relay = mycompany-com.mai ... ction.outlook.com。 [207.46.163.215],dsn = 4.5.3,stat = Deferred:452 4.5.3收件人太多(AS780090)2月24日15:15:03 cloud sendmail [6039]:u1ONF1DA006037:to =,delay = 00:00: 02,xdelay = 00:00:02,mailer = esmtp,pri = 210670,relay = mycompany-com.mai ... ction.outlook.com。 [207.46.163.215],dsn = 2.0.0,stat =已发送(< 201602242315.u1ONF1ah006036@cloud.cbsdds.net> [InternalId = 46398531701026,主机名= CY1PR0301MB1306.namprd03.prod.outlook.com]在0.840中为9849字节, 11.446 KB /秒

0 个答案:

没有答案