[Question] How to modify the default mail template? Topic is solved
[Question] How to modify the default mail template?
Hi there,
How can I modify the default mail that are being sent out when I add a user?
I want to modify it, so it also sends FTP Information. Atm, it only sends control panel login, most of my users have no idea how to login to ftp (what domain, ip etc)
How can I modify the default mail that are being sent out when I add a user?
I want to modify it, so it also sends FTP Information. Atm, it only sends control panel login, most of my users have no idea how to login to ftp (what domain, ip etc)
Re: [Question] How to modify the default mail template?
STEP 1: Open /usr/local/vesta/web/add/user/index.php on line 86
Change
To
STEP 2: Open /usr/local/vesta/web/inc/i18n/en.php
Change
To BEFORE PASTING THIS LINE EDIT COMPANY NAME HERE TO YOUR COMPANY NAME
STEP 3: Repeat step #2 for each language you/clients plan on using remember to translate the text above to each language.
The new welcome email will look like this,
Let me know if you have any problems or questions.
Change
Code: Select all
$mailtext .=_translate($_POST['v_language'],'ACCOUNT_READY',$_SERVER['HTTP_HOST'],$_POST['v_username'],$_POST['v_password']);
Code: Select all
$mailtext .= _translate($_POST['v_language'],'ACCOUNT_READY',$_SERVER['HTTP_HOST'],$_POST['v_username'],$_POST['v_password'],$hostname,$_POST['v_username'],$_POST['v_password']);
Change
Code: Select all
'ACCOUNT_READY' => "Your account has been created and is ready for use.\n\nhttps://%s/login/\nUsername: %s\nPassword: %s\n\n--\nVesta Control Panel\n",
Code: Select all
'ACCOUNT_READY' => "Your account has been created and is ready for use.\n\nNew Account Information\n\n Control Panel: https://%s/login/ \n Username: %s\n Password: %s\n\nFTP Information\n\n FTP Hostname: %s\n Username: %s\n Password: %s\n\n --\n COMPANY NAME HERE \n",
The new welcome email will look like this,
Hello, CLIENT FIRST CLIENT LAST,
Your account has been created and is ready for use.
New Account Information
Control Panel: https://HOSTNAME:8083/login/
Username: CLIENT USERNAME
Password: CLIENT PASSWORD
FTP Information
FTP Hostname: HOSTNAME
Username: CLIENT USERNAME
Password: CLIENT PASSWORD
--
COMPANY NAME HERE
Let me know if you have any problems or questions.