We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
[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.
-
- Posts: 3
- Joined: Sun Feb 16, 2020 6:04 pm
- Os: Ubuntu 17x
- Web: apache + nginx
Re: [Question] How to modify the default mail template?
Hi now cant work,
here in : /usr/local/vesta/web/add/user/
is only :-)
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
can't change template.
here in : /usr/local/vesta/web/add/user/
is only :-)
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
can't change template.
-
- Posts: 3
- Joined: Sun Feb 16, 2020 6:04 pm
- Os: Ubuntu 17x
- Web: apache + nginx
Re: [Question] How to modify the default mail template?
Ok jo,thsecurityCZ wrote: ↑Fri Nov 05, 2021 2:46 amHi now cant work,
here in : /usr/local/vesta/web/add/user/
is only :-)
<?php include($_SERVER['DOCUMENT_ROOT'].'/static/index.html'); ?>
can't change template.
the solution is simple, choose your language.php and find: ACCOUNT_READY
line 514,518,521 etc- change the last line \ nYOUR TEXT PUT HERE\ n ",
:-)