Home > Backend Development > PHP Tutorial > 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
Release: 2016-07-13 09:47:12
Original
1012 people have browsed it

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:
/*Get the user’s EMIAL address*/
/*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>
Copy after login

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

include("../../class/SendEmail.inc.php");
Copy after login

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

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

------------------------------------------------- ----------
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);
}
Copy after login

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------------------------------------- ...
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template