Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Modification & Patches
  • Search

[Question] How to modify the default mail template? Topic is solved

Section with modification and patches for Vesta
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
AnonyHF
Posts: 6
Joined: Fri Nov 07, 2014 10:06 pm

[Question] How to modify the default mail template?
  • Quote

Post by AnonyHF » Fri Nov 07, 2014 10:07 pm

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)
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: [Question] How to modify the default mail template?
  • Quote

Post by joem » Fri Nov 14, 2014 7:13 am

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.
Top

thsecurityCZ
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?
  • Quote

Post by thsecurityCZ » Fri Nov 05, 2021 2:46 am

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.
Top

thsecurityCZ
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?
  • Quote

Post by thsecurityCZ » Fri Nov 05, 2021 3:09 am

thsecurityCZ wrote: ↑
Fri Nov 05, 2021 2:46 am
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.
Ok jo,

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 ",
:-)
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Modification & Patches”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password