Imperial CMS Message Board reply send email notify customer _php Instance

Source: Internet
Author: User

Description: Modify 1:e/admin/tool/regook.php/* Reply form * *

Add code at line 43
-----------------------------------------------------------------------------------------------

Copy Code code as follows:

<input name= "Email" type= "hidden" id= "email" value= "<?= $r [email]?>" >/* Access user emial Address * *
<input name= "Lytext" type= "hidden" id= "Lytext" value= "<?= $r [lytext]?>" >/* Take user message information * *

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

67 Lines Add Form selection

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

<tr bgcolor= "#FFFFFF" >
<td height= "> Notice friend:</td>
<td height=" ">
<input Name= "checked[]" type= "checkbox" id= "checked[" "value=" "title=" issued emial notice friends style= "background: #99C4E3" >
< Span style= "color:red" > Book friend email:<?= $r [email]?> </span>
</td>
</tr>

--------------------------------------------------------------------------------------------------------------- ------
Modified 2:
e/admin/tool/gbook.php Add a row:

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

----------------------------------------------------------
Modified into:
----------------------------------------------------------

ElseIf ($enews = = "Regbook")
{
$lyid =$_post[' Lyid '];
$bid =$_post[' bid '];
$retext =$_post[' Retext '];
$email =$_post[' email '];
$lytext =$_post[' Lytext '];
$checked = (int) $_post[' checked '];
if ($checked)//Send
{
ecmstosendmail ($email, $lytext, $retext);
}
Regbook ($lyid, $retext, $bid, $logininid, $loginin);

The above mentioned is the entire content of this article, I hope you can enjoy.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.