Sentora Support Forums
Help Editing Account Sign Up Email - Printable Version

+- Sentora Support Forums (https://senforums.mach-hosting.com)
+-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5)
+--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32)
+---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36)
+---- Thread: Help Editing Account Sign Up Email (/showthread.php?tid=2262)



Help Editing Account Sign Up Email - liamgreen - 12-08-2015

Hello, I'm using Ubuntu Server 12.04.5 LTS and i'm wanting to be able to edit this information.. As i don't want to keep editing it every time i make someone an account.

Quote:Your Sentora Account details


Quote: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



RE: Help Editing Account Sign Up Email - Ron-e - 12-08-2015

check out modules/manage_clients/code/controller.ext.php line 695.


RE: Help Editing Account Sign Up Email - liamgreen - 12-08-2015

(12-08-2015, 03:36 AM)Ron-e Wrote: check out modules/manage_clients/code/controller.ext.php line 695.

Thank you for the reply. Do you know how i edit this? I'm using ubuntu server 12.04.5 LTS and i don't know how to edit it since there is no GUI. I've done a google search but had no luck.


RE: Help Editing Account Sign Up Email - TGates - 12-08-2015

Manually edit with vi or nano or use WinSCP (works like a file explorer).


RE: Help Editing Account Sign Up Email - liamgreen - 12-08-2015

(12-08-2015, 04:18 PM)TGates Wrote: Manually edit with vi or nano or use WinSCP (works like a file explorer).

Thanks for this. Will have a look now Smile


RE: Help Editing Account Sign Up Email - bluebrad - 04-11-2016

(12-08-2015, 08:02 PM)liamgreen Wrote:
(12-08-2015, 04:18 PM)TGates Wrote: Manually edit with vi or nano or use WinSCP (works like a file explorer).

Thanks for this. Will have a look now Smile

what about the "Your Sentora Account details" in the head of the email?


RE: Help Editing Account Sign Up Email - TGates - 04-12-2016

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)