How to Modify Joomla Registration Confirmation Email

by Brad Xanti   Last Updated June 28, 2016 08:04 AM

I'm currently trying to enhance/streamline the User Registration process on our Joomla website, however I've run into a snag on modifying the User Confirmation email. I have figured out how to change the text (extensions -> language(s) -> overrides) of the email, but not the html of the email. I'm trying to use some basic styling and more strategic placement of the links to make it more abundantly obvious what to do.

Is there any way to do this without installing an extension? My site is getting pretty bloated and I would prefer to not install an extension or plugin.

Thanks!



Answers 1


The text is the HTML of the email. You can have HTML code in that text formatted the way you want. There is no other place where you can actually change the HTML of that email.

Update: Open the components/com_users/models/registration.php file and add true at the end of each and every JFactory::getMailer()->sendMail function call. For example, you should change the following line:

$return = JFactory::getMailer()->sendMail($data['mailfrom'], $data['fromname'], $row->email, $emailSubject, $emailBody);

to

$return = JFactory::getMailer()->sendMail($data['mailfrom'], $data['fromname'], $row->email, $emailSubject, $emailBody, true);

Note that there are 4 occurrences, so you should change them all. Also note that this is a core modification, so proceed with caution.

If it still doesn't work, then change $emailBody (or $emailBodyAdmin) to html_entity_decode($emailBody) (or html_entity_decode($emailBodyAdmin)).

itoctopus
itoctopus
June 27, 2016 21:16 PM

Related Questions


User management with no email

Updated April 08, 2015 02:04 AM

Modify mail on user-creation

Updated February 22, 2016 01:04 AM

Resend registration email / reminder

Updated July 15, 2015 13:04 PM


Activation email not being sent

Updated June 02, 2016 08:04 AM