Add code at line 43
-------------------------------------------------- ---------------------------------------- Copy the code The code is as follows:
/*Get the user’s EMIAL address*/
/*Get user message information*/
< input name="checked[]" type="checkbox" id="checked[]" value="" title="Send Emial notification to book friends" style="background:#99C4E3">
Book friend Email:=$r[email]?>
Copy code
------------------------------------------------- -------------------------------------------------- ------------------
Modification 2:
e/admin/tool/gbook.php Add a line:
include("../../class/SendEmail.inc.php");
Copy code
30 lines of code
-------------------------------------------------- --------
elseif($enews=="ReGbook")
{
$lyid=$_POST['lyid'];
$bid=$_POST['bid'];
$retext=$_POST['retext '];
ReGbook($lyid,$retext,$bid,$logininid,$loginin);
}
Copy code
------------------------------------------------- ----------
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)// Send
{
EcmsToSendMail($email,$lytext,$retext);
}
ReGbook($lyid,$retext,$bid,$logininid,$loginin);
}
Copy code
The above is the entire content of this article, I hope you all like it.
CMS,EMAIL
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