簡體   English   中英

在PHP cc電子郵件中,如何使用組電子郵件地址而不是太多的Outlook逗號分隔電子郵件

[英]In PHP cc email, how to use group email address instead of too many comma separate emails of outlook

我在Outlook中創建了一個組,其組ID名稱為“ php@domain.com”,該組中有5個成員。

所以我想在CC中向該組發送郵件。我在CC中使用'php@domain.com'組ID名稱,但是沒有任何成員收到任何郵件。

$emp_email = $row["email"];
$msg = "test";
$subject = 'Happy Birthday!!';
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= 'Cc: php@******.com' . "\r\n";
$headers .= "From: From Name <info@******.com>";
$sentmail = mail($emp_email, $subject, $msg, $headers);

here $emp_email is receiving mail but there is no any action in CC. 

Groupid是多個抄送中唯一的一個。 因此,PHP無法理解組ID。 您必須在cc中使用數組。

您只能將此組ID用於Outlook。 PHP無法理解這一點。 您應該在CC中發送數組。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM