Home >php教程 >php手册 >帝国CMS留言板回复后发送EMAIL通知客户,cmsemail

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

WBOY
WBOYOriginal
2016-06-13 08:58:3011720browse

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

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

43行处添加代码
-----------------------------------------------------------------------------------------------
复制代码 代码如下:
       /*取用户EMIAL地址*/
    /*取用户留言信息*/

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

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:<&#63;=$r[email]&#63;> </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);
}

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn