我想用 CC 发送邮件。邮件发送成功,但抄送未发送。
$to = 'abc@xyz.com';
$subject = 'Order Details of Order Number:'.$orderID;
$headers = "From: webmaster@xyz.com\r\nReply-To: webmaster@xyz.com";
$headers .= "\r\nContent-Type: multipart/alternative; boundary=\"PHP-alt-".$random_hash."\"";
$message = "Test Message";
$headers .= 'Cc: def@xyz.com' . "\r\n";
mail($to, $subject, $message, $headers);
我将这封邮件作为 HTML 发送。