【发布时间】:2014-03-13 17:15:22
【问题描述】:
我正在尝试以我的 PHP 表单密件抄送一封电子邮件。出于某种原因,以下代码不会将表单发送到密件抄送地址:
$headers = "From: " . strip_tags($from) . "\r\n" . "BCC:test@test.com";
$headers .= "Reply-To: ". strip_tags($from) . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
除了密件抄送未收到电子邮件外,该表单有效。对于密件抄送部分,我在以下位置使用了公认的答案: Add BCC field to a php contact form
感谢任何帮助。
【问题讨论】: