ECMS反馈发送邮箱文档

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.FeedMail.php文件代码示例


标题:{ $_POST [ 'title' ]}  
<b>姓名:</b>{$_POST [ 'name' ]}  
<b>电话:</b>{$_POST [ 'call' ]}  
<b>内容:</b>  
--------------------------------------------------------------------------------------  
{$_POST [ 'saytext' ]}  
--------------------------------------------------------------------------------------  
IP:$ip   
";  
  
//执行发信   
$sm =EcmsToSendMail( $email , $subject , $text );  
?>  



other1.发件人修改 e/class/SendEmail.inc.php
这个是修改发件人的EMAIL是反馈者留的邮箱地址,方便回复邮件到反馈人的邮箱


//$mailer->From=$r['fromemail'];   
    if ( $_POST [ 'email' ]){  
        $mailer ->From= $_POST [ 'email' ];  
    }  
    else {  
        $mailer ->From= $r [ 'fromemail' ];  
    }  
    //$mailer->FromName=$r['emailname'];   
    if ( $_POST [ 'name' ]){  
        $mailer ->FromName= $_POST [ 'name' ];  
    }  
    else {  
        $mailer ->FromName= $r [ 'emailname' ];  
    } 

你可能感兴趣的:(文档,email,include,电话)