1. 修改e/enews/index.php 找到如下代码
“else
{
include(‘../class/q_functions.php’);
}”,在此代码前加代码:
//trylife add for feedmail
elseif($enews==’AddFeedback’){
include(‘../class/q_functions.php’);
include(‘../class/SendEmail.inc.php’);
include(‘../trylife/Mail/FeedMail.php’);
}
2、文件上传 FeedMail.php 文件上传到 e/trylife/Mail/
3、发件人邮址:
e/class/SendEmail.inc.php 找到 $mailer->From=$r[‘fromemail’]; 替换为:
if($_POST[’email’]){
$mailer->From=$_POST[’email’];
}
else{
$mailer->From=$r[‘fromemail’];
}
6、表单文件