Posts: 0
Threads: 2
Joined: Feb 2025
Reputation:
0
Hi!
When you add a domain to the panel, an email is sent to the entered email address telling the username, password and the panel address.
How can i customize this email? Where can i find the default file?
I wanted to add some more info in that email - for example - default address where to access webmail (which like what you said -i webmail.domain.com), ways to configure outlook and other information. I think its a nice idea that once you add the domain, the new user will receive all these other valuable info.
Thanks!
Restored from old drupal forum, for user uid:1261 username:ares in uae
You may reset your password to access your new account here.
Posts: 1,386
Threads: 252
Joined: Feb 2025
Reputation:
0
sory, it is hardcoded in classapp.php file,
i may consider puting it in a template file, later,
open classapp.php,
find function addDomaniDirect
find row:
$msguser="ehcp: $domainname domain created in ehcp panel at http://".$this->conf['dnsip']." Your panelusername: $panelusername, Password: $paneluserpass, ftpusername: $ftpusername, ftp pass: $ftppassword ";
change it whatever you want,
note that, this is php code, so you need to care about php syntax, otherwise new file wont work.
I suggest you to backup existing file.
see you
Restored from old drupal forum, for user uid:1261 username:ares in uae
You may reset your password to access your new account here.
Posts: 0
Threads: 2
Joined: Feb 2025
Reputation:
0
thanks
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Posts: 0
Threads: 7
Joined: Feb 2025
Reputation:
0
Hello,
What is the best method to desactivate this email send ?
I send informations later when the joomla application is installed.
Restored from old drupal forum, for user uid:1261 username:ares in uae
You may reset your password to access your new account here.
Posts: 1,386
Threads: 252
Joined: Feb 2025
Reputation:
0
open classapp.php,
find function addDomaniDirect
put a # at start of mail( function
Restored from old drupal forum, for user uid:2979 username:luke duck
You may reset your password to access your new account here.
Posts: 0
Threads: 7
Joined: Feb 2025
Reputation:
0
hi, thank you but can you give me the line number ?
i found a lot of "$msguser="
i think you want to said addDomainDirect, not addDomaniDirect
Restored from old drupal forum, for user uid:1 username:ehcpdeveloper
You may reset your password to access your new account here.
Posts: 1,386
Threads: 252
Joined: Feb 2025
Reputation:
0
if you use current ehcp (ver 0.29.12) that can be downloaded from www.ehcp.net/download,
(you see version number on left bottom of your ehcp gui)
then, line number is 3270 in classapp.php
the line has:
<code>if($email<>'') mail($email,"Your domain $domainname set up in ehcp panel", $msguser,"From: ".$this->conf['adminemail']);
make it appear:
<code>#if($email<>'') mail($email,"Your domain $domainname set up in ehcp panel", $msguser,"From: ".$this->conf['adminemail']);
Restored from old drupal forum, for user uid:2979 username:luke duck
You may reset your password to access your new account here.