回复来自的电子邮件地址
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了回复来自的电子邮件地址相关的知识,希望对你有一定的参考价值。
这是process.php。我想从表格上的电子邮件地址收到电子邮件,以便我可以回复
<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
// To send html mail, the Content-type header must be set
$headers = "MIME-Version: 1.0
";
$headers .= "Content-Type: text/html; charset=ISO-8859-1
";
$headers .= "From: " . $_POST['field_9'] . "
";
$headers .= "Reply-To: ". $_POST['field_9'] . "
";
mail("harshad@madiganpratt.com","Reservaion Enquiry","Form data:
Preferred Arrival Date : " . $_POST['field_1'] . "
Preferred Departure Date: " . $_POST['field_2'] . "
Room Category: " . $_POST['field_3'] . "
Adults: " . $_POST['field_4'] . "
Children: " . $_POST['field_5'] . "
Please contact me by: " . $_POST['field_6'] . "
First Name: " . $_POST['field_7'] . "
Last Name: " . $_POST['field_8'] . "
Email: " . $_POST['field_9'] . "
Phone: " . $_POST['field_10'] . "
");
include("confirm.html");
?>
......
以上是关于回复来自的电子邮件地址的主要内容,如果未能解决你的问题,请参考以下文章
如何更改 Wordpress 电子邮件的回复标题中的电子邮件地址
如何使用 PHPMailer 为不同的电子邮件地址设置不同的回复地址?