Customizing Welcome email

From TNG_Wiki
Jump to navigation Jump to search

Question raised

Is it possible to customize the email sent to new users?

The question was asked by Micah Salb on User2 list on 28 October 28 2009 8:20 AM.

Here are two email messages that might be customized:

  • Message sent to the Administrator indicating a person has requested a user account
  • Message sent to the User welcoming them to your site.


Mail sent to Admin

To customize the message you receive as the administrator when a person requests a user account, search for $text['emailmsg'] in file text.php in your English (or other language) folder. It likely reads as follows:


$text['emailmsg'] = "You have received a new request for a TNG user account. Please log into your TNG Admin area and assign proper permissions to this new account. If you approve of this registration, please notify the applicant by replying to this message.";


Copy the above line from text.php and paste it in cust_text.php in your language folder (English, or other language) and then make the changes in there. For example,


$text['emailmsg'] = "You have received a new request for a TNG user account. Please log into your TNG Admin area, select User, and then the Review tab, find the user request and assign the proper permissions to this new account. If you approve of this registration, please notify the applicant by replying to this message.";
Answer provided without example by Darrin Lythgoe on the User2 list on 28 October 2009 8:11 p.m.


Welcome Mail sent to User

To customize the message sent to new users after you have approved and/or created a login username and password for them, find $admtext['hello'] and $admtext['activated'] in file alltext.php (in admintext.php in TNG v7) in your English (or other language) folder. They likely read as follows:


$admtext['hello'] = "Hello";
$admtext['activated'] = "Your genealogy user account has been activated.";


You should copy either or both of the above lines from admintext.php and paste them in cust_text.php in your language folder (English, or other language) and then make the changes in there. For example,


$admtext['hello'] = "Hi";
$admtext['activated'] = "This is an auto-generated email. Thank you for your interest in my website! Your genealogy user account has been activated. This will let you see the records for living people, and if you see any errors or want to tell me fresh information, you can put your comments on the \"Suggest\" pages (tabs).";
Answer provided by Roger Clist on the User2 list on 29 October 2009 5:20 a.m.

It appears that since Roger Clist's reply the text variables $admtext['activated'] and $admtext['hello'] have been moved in later versions (including 10.1.3) of TNG and now reside in alltext.php. The same advice regarding copying and customising into cust_text.php prevails.

Alan Craxford March 21st 2017


Related Links

Text_variables_-_explained