我正在设置支付页面,我是设计师而不是开发人员。所以我一直遇到一些问题。付款后,它会经过几个阶段并生成响应。在返回的 response.php 文件中,我有机会注入一些代码以向客户发送电子邮件,通知他已收到付款。
邮件确实已发送到客户端,但缺少变量。我收到文本信息。任何可以提供帮助的人将不胜感激。
$name = $_POST['name'];
$email = $_POST['email'];
$client = $_POST['CUST_NUM'];
$amount = $_POST['AMOUNT'];
$email_from = 'payments@rcehholidaytrust.com';//<== update the email address
$email_subject = "RCEH Website Payment Activity";
$email_body = "You have received a payment from a client $name.\n".
"Account Number:\n $client".
$to = "patrick@patrickmchugh.com";//<== update the email address
$headers = "From: $email_from \r\n";
$headers .= "Reply-To: $email \r\n";
//Send the email!
mail($to,$email_subject,$email_body,$headers);