Forums

How to change registration email received by new user ?

Repitol 02 Jul, 2012
Hi,
New problem for me.
after form submission (joomla user registration enabled)
user receive a welcome email from the website.
How can I modify this email (wizard advanced mode) to have
"Hi, firstname name"
and not "Hi, name" which looks military...

Thanks for all you do for us the desesperate newbies.
Repitol 04 Jul, 2012
Hello there,
no idea ?

the welcome mail is apparently based on "language"com_user.ini (joomla/languages)
on line "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.

that reads settings on joomla/components/com_users/controller.php
($message = sprintf ( JText::_( 'SEND_MSG' ), $name, $sitename, $siteURL);


where $name corresponds to line "SEND_MSG" first %s (after "Hello") and $sitename corresponds to second %s (after "registering at")

However, I can't fix my problem by erasing the first "%s" from 'SEND_MSG' and "$name" from controller.php without shifts in the mail

the mail gives then : Hello, Thank you for registering at (user name). You may now log in to (site name) using the username and password you registered with.

Don't know how to fix it... I'm close to the edge...
😟
GreyHead 04 Jul, 2012
Hi Repitol ,

Why not make the Joomla! username firstname + lastname

That gets round your problems.

Bob
Repitol 04 Jul, 2012
Hi Bob,
how are you ?

yep, that'll be my option but I have to change the form the customer just validated.
I think this the best choice.
thanks for your help
GreyHead 04 Jul, 2012
Hi Repitol,

You can keep the form the same but build a new 'name' field value after submission.

Bob
This topic is locked and no more replies can be posted.