首页 > 解决方案 > 我只想删除邮件标题中写的 via 和额外的东西

问题描述

点击这里查看图片

$email = validate_input($_POST['email']);
$headers = "From: donotreply@xyz.co.nz"."\r\n". "CC: coach@xyz.co.nz";  $body = "Hi, Thank you for subscribing . Please find the link below for FREE 1 week course on Basic’s of Freestyle.\n\nwww.xyz.com/freecourse.php";
$body = wordwrap($body,70);
$mail = mail($email, "| Basic’s of Freestyle", $body,$headers);

标签: phpjqueryhtmlcss

解决方案


只需在标题后添加 -f 即可解决问题 $mail = mail($email, "| Basic’s of Freestyle", $body,$headers,'-fcoach@xyz.co.nz');


推荐阅读