我读到了
支持所有自定义标题(如 From、Cc、Bcc 和 Date)
来自PHP mail() 参考,但我如何在我的代码中实际实现这一点?即我不希望任何收件人看到其他电子邮件......永远。
就像是:
<?php
$to = "someguy@somesite.com, another@abc.com, someother@def.com";
$subject = "test message";
$msg = "this is a test";
$headers = "Bcc"; // <-- this?
if (mail($to, $subject, $msg, $headers))
echo "message sent";
else
echo "uh oh";
?>