Replacing the Joomla User Registration Email

Replacing the canned new user registration email is easy in Joomla. Initially we thought that there would be some complex plugin architecture that we might need to write or install some extension that allowed post-function trigger after a new user registers.

However we overlooked the language features built-in Joomla and it's exactly these nifty .ini language files that allow easy replacement of the standard email a newly registered user receives.

If you are changing the standard email message that a user receives after the Administrator adds them via the function Site -> User Manager -> New, then edit the en-GB.com_users.ini file at:

administrator/language/en-GB/en-GB.com_users.ini

Then look for the ini value NEW_USER_MESSAGE and replace it with your own.

NEW_USER_MESSAGE=Hello %s,\n\n\nYou have been added as a User to %s by an Administrator.\n\nThis e-
mail contains your username and password to log in to %s\n\nUsername: %s\nPassword: %s\n\n\nPlease
do not respond to this message as it is automatically generated and is for information purposes only.

Note that there are 5 string values that get replaced with %s. The order and value of these are provided below for convenience:

  1. Name of User
  2. Site Name
  3. Login URL
  4. Username
  5. Password

If you want to change the standard email users receive after registering themselves instead of the Administrator registering them, then edit the en-GB.com_user.ini file at:

language/en-GB/en-GB.com_user.ini

Look for the ini value for SEND_MSG and use your own.

SEND_MSG=Hello %s,\n\nThank you for registering at %s.\n\nYou may now log in to %s using the
username and password you registered with.




Comments


David You can modify the value of each include as their value is abased on order:

1 Name of User
2 Site Name
3 Login URL
4 Username
5 Password

Add a delimiter of $ and a number in your en-GB.com_users.ini. I only wanted to print out the username and password, but the output was in the order of values expected from the variable controllers as found in httpdocs / administrator / components / com_users / controller.php


NEW_USER_MESSAGE=Welcome Aboard\n\n\n Please click on this link www.acme.com to access the site and use the password below along with your email address to login.\n\n\nLogin: %4$s\nPassword: %5$s\n\n\n\nPlease do not respond to this message as it is automatically generated and is for information purposes only.\n\n\nThank you and good selling,\n\nWeb Team

By adding 4$ between the ordered value of the %s I controlled with variables where place where in the message.

Oh yeah, the escaped n's produce a line break, or multiple breaks depending on many you use.

Note, the string you place in the en-GB users.ini file must not have any line brakes, it should wrap in the editor of choice.

Good luck

David

Chris Hello,

In joomla 1.6, here is no way to find the "NEW_USER_MESSAGE" line in neither the site or the administrator language folder.

I'm confused here. Where is this email changed?

Thanks,
Chris

Your Name:
Your Email:
Comment: