Home > Article > Backend Development > Send EMAIL to notify customers after replying to the Imperial CMS message board, cmsemail_PHP tutorial
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:<?=$r[email]?> </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.