Home Backend Development PHP Tutorial 帝国CMS留言板回复后发送EMAIL通知客户_php实例

帝国CMS留言板回复后发送EMAIL通知客户_php实例

Jun 07, 2016 pm 05:12 PM
send email Empire cms

说明:修改1:e/admin/tool/ReGook.php   /*回复表单*/

43行处添加代码
-----------------------------------------------------------------------------------------------

复制代码 代码如下:

       /*取用户EMIAL地址*/
    /*取用户留言信息*/

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

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

---------------------------------------------------------------------------------------------------------------------
修改2:
e/admin/tool/gbook.php 添加一行:

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

30行代码
----------------------------------------------------------

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

----------------------------------------------------------
修改成:
----------------------------------------------------------

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

以上所述就是本文的全部内容了,希望大家能够喜欢。

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

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Where is the imperial cms website map? Where is the imperial cms website map? Apr 17, 2024 am 10:48 AM

Where is the imperial cms website map?

Where are the settings for the mobile version of Empire CMS? Where are the settings for the mobile version of Empire CMS? Apr 17, 2024 pm 12:12 PM

Where are the settings for the mobile version of Empire CMS?

Where is the imperial cms resource network template? Where is the imperial cms resource network template? Apr 17, 2024 am 10:00 AM

Where is the imperial cms resource network template?

Where can I put the empire cms template file for easy use? Where can I put the empire cms template file for easy use? Apr 17, 2024 am 07:22 AM

Where can I put the empire cms template file for easy use?

Where to find the empire cms database configuration file Where to find the empire cms database configuration file Apr 17, 2024 am 06:42 AM

Where to find the empire cms database configuration file

Where is the automatic publishing interface of Empire CMS? Where is the automatic publishing interface of Empire CMS? Apr 17, 2024 am 09:03 AM

Where is the automatic publishing interface of Empire CMS?

Is empire cms free? Is empire cms free? Apr 17, 2024 am 11:24 AM

Is empire cms free?

Where is the Imperial CMS member center? Where is the Imperial CMS member center? Apr 17, 2024 am 04:45 AM

Where is the Imperial CMS member center?

See all articles