我正在使用我购买的联系表格中的以下代码;
$address = "myEmailAddress here";
$e_subject = 'Footie Tote from ' . $name . '.';
$e_body = "You have received scores from $name, with the following details;\n
Match A: $matcha\n
Match B: $matchb\n
Match C: $matchc\n
Match D: $matchd\n
Match E: $matche\n
Match F: $matchf\n
Match G: $matchg\n
Match H: $matchh\n
Name: $name\n
Email: $email\n
" . PHP_EOL . PHP_EOL;
$msg = wordwrap( $e_body . $e_content . $e_reply, 70 );
$headers = "From: $email" . PHP_EOL;
$headers .= "Reply-To: $email" . PHP_EOL;
$headers .= "MIME-Version: 1.0" . PHP_EOL;
$headers .= "Content-type: text/plain; charset=utf-8" . PHP_EOL;
$headers .= "Content-Transfer-Encoding: quoted-printable" . PHP_EOL;
if(mail($address, $e_subject, $msg, $headers)) { etc.
我正在尝试将电子邮件发送到另一个电子邮件地址,这是某人在表单中输入的电子邮件地址($email 值),所以就像他们正在获取提交表单的副本一样。
有人可以指出我实现这一目标的正确方向。