如何在php邮件程序中向多个用户发送电子邮件

时间:2017-10-25 17:47:03

标签: phpmailer

我想在计数不为零时向两个用户发送电子邮件。当我在做   AT+CMGS="0xxxxxxxxxx",AT+CMGS="0xxxxxxxxxx" Dear Customer, Following Call has been logged: Call No: 1151 Call Created : 8/30/2017 4:07:02 PM Customer: INOR Equipment Name: SOMATOM Emotion Equipment Serial No: 93851 Issue Description: Commissioning data, PPM. CSE: Imran Khan Contract Status: Warranty Regards, ABCD Customer Care Center UAN: +92 42 111 74 36 36 Email: hc.customercare.pk@abcd.com 它的工作,但当我做它 $semail = $row_seller['seller_email'];不是,我想将它发送给两者。我怎么能这样做。

$semail = $row_seller['seller_email'].",example@gmail.com";

1 个答案:

答案 0 :(得分:0)

您需要使用addAddress方法或addCC来添加副本,如此

$mail->addAddress('mail@domain.com', 'NAME'); //add address
$mail->addCC('mail@domain.com', 'NAME'); / add copy

Github