Home  >  Article  >  Backend Development  >  Send EMAIL to notify customers after replying to the Imperial CMS message board, cmsemail_PHP tutorial

Send EMAIL to notify customers after replying to the Imperial CMS message board, cmsemail_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 09:47:12984browse

After the Empire CMS message board replies, it will send an email to notify the customer, cmsemail

Instructions: Modification 1: e/admin/tool/ReGook.php /*Reply form*/

Add code at line 43
-------------------------------------------------- ---------------------------------------------
Copy code The code is as follows:
b60231fb7cb7123c7d73c2c637f7f378"> /*Get the user’s EMIAL address*/
9ae993153da62bd94b3996bc6670e2fa"> /*Get user message information*/

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

Add form selections on line 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>

------------------------------------------------- -------------------------------------------------- ------------------
Modification 2:
e/admin/tool/gbook.php Add a line:

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

30 lines of code
-------------------------------------------------- --------

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

------------------------------------------------- ----------
Modify to:
-------------------------------------------------- --------

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);
}

The above is the entire content of this article, I hope you all like it.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1027499.htmlTechArticleAfter the Empire CMS message board replies, it will send an EMAIL to notify the customer, cmsemail Note: Modification 1: e/admin/tool/ReGook .php /*Reply form*/ Add code at line 43------------------------------------- ...
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