This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Help Editing Account Sign Up Email
#7
RE: Help Editing Account Sign Up Email
It is hard-coded here: \modules\manage_clients\code\controller.ext.php line 695 (which is what shows up in the default email)

The "Your Sentora Account details" is also hard-coded here: \modules\manage_clients\module.zpm line: 253

I think there is an update pending on this to have it editable in the database. Me.B

DB entry:
Code:
insert  into `x_settings`(`so_id_pk`,`so_name_vc`,`so_cleanname_vc`,`so_value_tx`,`so_defvalues_tx`,`so_desc_tx`,`so_module_vc`,`so_usereditable_en`) values
(122,'welcome_message','Custom e-mail Welcome Message','Hi {{fullname}},
We are pleased to inform you that your new hosting account is now active!
You can access your web hosting control panel using this link: {{controlpanelurl}}
Your username and password is as follows:
Username: {{username}}
Password: {{password}}
Many thanks,
The management',NULL,'Here you can edit the Welcme Message e-mail','Sentora Config','true');


Updated static function in /modules/manage_clients/code/controller.ext.php line 700:
PHP Code:
   static function DefaultEmailBody()
 
   {
 
       global $zdbh;
    
$sql "SELECT so_value_tx FROM x_settings WHERE so_name_vc = :configName";
 
       $numrows $zdbh->prepare($sql);
 
       $numrows->bindValue(':configName''welcome_message');
 
       $numrows->execute();
 
       $result $numrows->fetch();
 
       
        if 
($result) {
 
           return ($result['so_value_tx']);
 
       } else {
 
           return false;
 
       }
 
   

I have tested this and seems to work OK (Ubuntu 14.04/Sentora 1.0.3)
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:


Messages In This Thread
Help Editing Account Sign Up Email - by liamgreen - 12-08-2015, 01:44 AM
RE: Help Editing Account Sign Up Email - by Ron-e - 12-08-2015, 03:36 AM
RE: Help Editing Account Sign Up Email - by TGates - 04-12-2016, 12:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
change username from email umarzuki@gmail.com 0 1 ,630 11-25-2022, 05:46 PM
Last Post: umarzuki@gmail.com
Transfer Account to another Sentora BenI 1 3 ,334 07-21-2022, 07:19 PM
Last Post: Nigel
Email has stopped coming through rsthomas 3 4 ,946 06-21-2022, 12:05 PM
Last Post: fearworks

Forum Jump:


Users browsing this thread: 2 Guest(s)