当前位置:首页 > PHP教程 > PHP常见问题

帝国CMS留言板回复后发送EMAIL通知客户

说明:修改1:e/admin/tool/regook.php   /*回复表单*/

43行处添加代码
-----------------------------------------------------------------------------------------------

复制代码 代码如下:

<input name="email" type="hidden" id="email" value="<?=$r[email]?>">       /*取用户emial地址*/
<input name="lytext" type="hidden" id="lytext" value="<?=$r[lytext]?>">    /*取用户留言信息*/

-----------------------------------------------------------------------------------------------

67行添加表单选择项

------------------------------------------------------------------------------------------------------------------

<tr bgcolor="#ffffff">
<td height="25">通知书友:</td>
<td height="25">
<input name="checked[]" type="checkbox" id="checked[]" value="" title="发emial通知书友" style="background:#99c4e3">
<span style="color:red"> 书友email:<?=$r[email]?> </span>
</td>
</tr>

---------------------------------------------------------------------------------------------------------------------
修改2:
e/admin/tool/gbook.php 添加一行:

include("../../class/sendemail.inc.php");

30行代码
----------------------------------------------------------

elseif($enews=="regbook")
{
$lyid=$_post['lyid'];
$bid=$_post['bid'];
$retext=$_post['retext'];
regbook($lyid,$retext,$bid,$logininid,$loginin);
}

----------------------------------------------------------
修改成:
----------------------------------------------------------

elseif($enews=="regbook")
{
$lyid=$_post['lyid'];
$bid=$_post['bid'];
$retext=$_post['retext'];
$email=$_post['email'];
$lytext=$_post['lytext'];
$checked=(int)$_post['checked'];
if($checked)//发送
{
ecmstosendmail($email,$lytext,$retext);
}
regbook($lyid,$retext,$bid,$logininid,$loginin);
}

以上所述就是本文的全部内容了,希望大家能够喜欢。


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!