Topic-icon Disable welcome email to new users

Active Subscriptions:

None
13 years 2 months ago #31913 by kelros
Hi guys,
I have it so when someone signs up to my site, it registers them on my Aweber account as well which sends them an automated welcome message. I need to remove the message the Joomla! system sends out. The email is this one:
Hello {name},
Thank you for registering at {site}.
You may now log in to {site url} using the username and password you registered with.

In the /components/com_users/models/registration.php file, I've commented out the entire COM_USERS_EMAIL_REGISTERED_BODY section, but it's STILL sending this email. What am I missing here? How do I get this email to stop!?

Since you guys are the Gods of Joomla! login, you have to know this!
The topic has been locked.
Support Specialist
13 years 2 months ago #31921 by alzander
For JFBConnect, to prevent our emails, edit the /components/com_jfbconnect/controllers/loginregister.php file. Look for the following, around line 496:
// Send the registration email.
        $return = JFactory::getMailer()->sendMail($data['mailfrom'], $data['fromname'], $data['email'], $emailSubject, $emailBody);
Comment out that last line.

In the models/registration.php file in com_users, find the same 2 lines at about 410.

Hope that helps. Either way, let us know how that goes.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 2 months ago #31970 by kelros
well I don't get it. It's still not working. Is that all there is?
The topic has been locked.
Support Specialist
13 years 2 months ago #31980 by alzander
That should be. Can you tell me when that new user email is sent:
* Is it when the user registers through Facebook / JFBConnect
* The user registers through Joomla
* Do you have any other registration components on your site?

Thanks,
Alex
The topic has been locked.