Page 1 of 1

[Question] How to modify the default mail template?

Posted: Fri Nov 07, 2014 10:07 pm
by AnonyHF
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)

Re: [Question] How to modify the default mail template?

Posted: Fri Nov 14, 2014 7:13 am
by joem
STEP 1: Open /usr/local/vesta/web/add/user/index.php on line 86

Change

Code: Select all

$mailtext .=_translate($_POST['v_language'],'ACCOUNT_READY',$_SERVER['HTTP_HOST'],$_POST['v_username'],$_POST['v_password']);
To

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']);
STEP 2: Open /usr/local/vesta/web/inc/i18n/en.php

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",
To BEFORE PASTING THIS LINE EDIT COMPANY NAME HERE TO YOUR COMPANY NAME

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",
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,
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.