Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the ways to send welcome mail for Imperial cms6.6 registration?

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Xiaobian to share with you the empire cms6.6 registration welcome email sent by what methods, I hope you read this article after the harvest, let us discuss it together!

Empire CMS 6.6 What is the method of sending a welcome email?

1. Add extended variables

Variable name: myemai

Variable ID: Welcome Mail Switch

Variable Description: 1(ON) 0(OFF)

Variable name: myemaitit

Variable ID: Welcome Mail Title

variable description: [!-- username--]: username [!-- email--]: Email address [!-- date--]: Send time [!-- sitename--]: website name [!-- news.url--]: Website address [!-- mypassword--]: User password

Variable name: myemaitext

Variable ID: Welcome email content

variable description: [!-- username--]: username [!-- email--]: Email address [!-- date--]: Send time [!-- sitename--]: website name [!-- news.url--]: Website address [!-- mypassword--]: User password

2. The requested URL/class/user.php was not found on this server.

Find:

01.// Same IP registration

Copy code Add above:

01.// cryptographic variable copy

02.$ mypassword=$password;

03.

Copy Code Find:

01.// Mailbox activation

Copy code Add above:

01.// Send a welcome email

The copy code is as follows:

02.if($public_r['add_myemai']==1) 03. { 04.include('../ class/qmemberfun.php'); 05.SendhuanUserEmail($userid,$username,$email,$mypassword); 06.}

07.

The requested URL/e/class/qmemberfun.php was not found on this server.

01.// Activate Account

Copy code Add above:

01.// Send a welcome email

The code is as follows:

02.function SendhuanUserEmail($userid,$username,$email,$mypassword){ 03. global $empire,$dbtbpre,$public_r,$user_tablename,$user_username,$user_userid,$user_email; 04. //Send mail 05. $pr['title']=ReturnPublicAddVar('myemaititle'); 06. $pr['text']=ReturnPublicAddVar('myemaitext'); 07. @include(ECMS_PATH. 'e/class/SendEmail.inc.php'); 08. $textr=QMRepEmailtext($userid,$username,$email,$url,$pr['title'],$pr['text'],$mypassword); 09. $sm=EcmsToSendMail($email,$textr['title'],$textr['text']); 10.}

11.

Find:

01.// Replace message content variable

Copy code replaces the following function with:

The code is as follows:

01.function QMRepEmailtext($userid,$username,$email,$pageurl,$title,$text,$mypassword=''){ 02. global $empire,$dbtbpre,$public_r; 03. $date=date("Y-m-d"); 04. $r[text]=str_replace('[!-- pageurl--]',$pageurl,$text); 05. $r[text]=str_replace('[!-- username--]',$username,$r[text]); 06. $r[text]=str_replace('[!-- email--]',$email,$r[text]); 07. $r[text]=str_replace('[!-- date--]',$date,$r[text]); 08. $r[text]=str_replace('[!-- mypassword--]',$mypassword,$r[text]); 09. $r[text]=str_replace('[!-- sitename--]',$public_r[sitename],$r[text]); 10. $r[text]=str_replace('[!-- news.url--]',$public_r[newsurl],$r[text]); 11. $r[title]=str_replace('[!-- pageurl--]',$pageurl,$title); 12. $r[title]=str_replace('[!-- username--]',$username,$r[title]); 13. $r[title]=str_replace('[!-- email--]',$email,$r[title]); 14. $r[title]=str_replace('[!-- date--]',$date,$r[title]); 15. $r[title]=str_replace('[!-- mypassword--]',$mypassword,$r[title]); 16. $r[title]=str_replace('[!-- sitename--]',$public_r[sitename],$r[title]); 17. $r[title]=str_replace('[!-- news.url--]',$public_r[newsurl],$r[title]); 18. return $r; 19.}

Copy code modified!

After reading this article, I believe you have a certain understanding of the methods of sending welcome emails to Empire cms6.6. If you want to know more about it, welcome to pay attention to the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report