Get the App
SLTechnology News&Howtos  ›  Servers  › 

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

Shulou Source: shulou.com Published: 2022-06-02 02:47:04 10月01日 Update

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!

Tags: Variables code mail address user website method empire password identity mailbox content name file time activation user name article function done Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn NVidia Redmi Shulou Technology Xiaomi