简体   繁体   中英

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

I have created a group in Outlook it's group id name is 'php@domain.com', which have 5 member in that group.

So i want to send mail to this group in CC.I am using 'php@domain.com' group id name in CC but no any member is receiving any mail.

$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 is a one unique from multiple cc. So PHP can not understand the group id. you must have to use array in cc.

This group id you can use only for outlook. PHP can't understand this. You should send array in CC.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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