我使用我已购买的联系表单中的以下代码;
$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的CC/BCC来实现的。为打破要求的规则而抱歉...下次我将包括我的工作 – hoops78