Empire cms7.5 secondary development members send mail to the administrator after submission

1. Open qinforfun.php and find the code:

1

printerror("AddQinfoSuccess",$reurl,1);

2. Add before it:

1

2

3

4

5

$email=$empire->gettotal("select fromemail as total from {$dbtbpre}enewspublic ");

@include(ECMS_PATH.'e/class/SendEmail.inc.php');

$title="有来自会员 $username 的投稿";

$text=print_r($ad,true); //此处根据需要修改,这里把全部的投稿字段都发了

$sm=EcmsToSendMail($email,$title,$text);

You can also fill in the email address at will and change it to:

1

$email="邮箱地址";

Guess you like

Origin blog.csdn.net/winkexin/article/details/131007742