文件修改

e/enews/index.php 找到如下代码

else  
{  
    include('../class/q_functions.php');  
}

### 上方加入如下代码

elseif($enews=='AddFeedback'){  
    include('../class/q_functions.php');  
    include('../class/SendEmail.inc.php');  
    include('../trylife/Mail/FeedMail.php');  
} 

## 文件上传

FeedMail.php 文件上传到 e/trylife/Mail/

## FeedMail.php文件代码示例

<?php  
/*********************************************************************************** 
代码示例:(假设反馈字段为以下四个字段) 
 
标题:title 
姓名:name 
电话:call 
内容:saytext 
*************************************************************************************/  
  
  
//取得IP地址  
$ip=egetip();  
  
  
//需要发送的邮箱    
//$email='[email protected]';  
  
//多邮件示例  
$email=array("[email protected]","[email protected]","[email protected]");  
  
//邮件标题 邮件内容  
$subject='[Service.trylife.cn信息反馈]'.$_POST['title'];   
$text=" 
<b-->标题:{$_POST['title']} 
<b>姓名:</b>{$_POST['name']} 
<b>电话:</b>{$_POST['call']} 
<b>内容:</b> 
-------------------------------------------------------------------------------------- 
{$_POST['saytext']} 
-------------------------------------------------------------------------------------- 
IP:$ip 
";  
  
  
//执行发信  
$sm=EcmsToSendMail($email,$subject,$text);  
?>