我拿到这个信息,在访问者填写表格时,有30%的时间没有内容错误,不能孤立问题。 寄送电子邮件的网址如下:匿名。 任何想法?
我试图在论坛上找到答案,但迄今没有结果。 感谢你们的帮助!
<?php
$fromAddress = [email protected] ;
$subject = Resources - White Paper Download - .$_POST[ WhitePaper ];
$message .= "
";
foreach($_POST as $name => $value) {
$message .= $name . : . $value . "
";
}
$to = [email protected] ;
$headers = MIME-Version: 1.0 . "
";
$headers .= Content-type: text/plain; charset=UTF-8 . "
";
$headers .= From: . $fromAddress . "
" .
Reply-To: . $fromAddress . "
" .
X-Mailer: PHP/ . phpversion(). "
";
$headers .= Cc: [email protected], <[email protected]> . "
";
mail($to, $subject, $message, $headers);
echo "mail sent";
?>