Page 1 of 1

Disable New User Registration E-mail Notifications?

Posted: Mon May 15, 2006 6:27 pm
by lorrendo
Is there a way to disable New User Registration Notifications?

I don't want my e-mail box to get filled up.

Thanks!

Re: Disable New User Registration E-mail Notifications?

Posted: Mon Jun 05, 2006 10:49 pm
by lorrendo
I just found the solution.

Under user manager > click on your admin user and turn off "Receive System Emails"

Re: Disable New User Registration E-mail Notifications?

Posted: Sat Nov 04, 2006 4:50 pm
by vibez
won't that disable ALL system emails? Can we not just turn off the new user registration part only?

Re: Disable New User Registration E-mail Notifications?

Posted: Wed Nov 19, 2008 4:18 am
by chongfai13
I NEED this function.... how to configure it? please tell me ....

[email protected] ... thanks..

Re: Disable New User Registration E-mail Notifications?

Posted: Tue Feb 24, 2009 6:37 am
by davegregoire
Just in case you didn't get this yet, you need to comment out a section of the administrator/components/com_users/controller.php file.

Goto line 175 and comment out till line 189 like this:


/*if ($isNew)
{
$adminEmail = $me->get('email');
$adminName = $me->get('name');

$subject = JText::_('NEW_USER_MESSAGE_SUBJECT');
$message = sprintf ( JText::_('NEW_USER_MESSAGE'), $user->get('name'), $SiteName, JURI::root(), $user->get('username'), $user->password_clear );

if ($MailFrom != '' && $FromName != '')
{
$adminName = $FromName;
$adminEmail = $MailFrom;
}
JUtility::sendMail( $adminEmail, $adminName, $user->get('email'), $subject, $message );
}*/

Re: Disable New User Registration E-mail Notifications?

Posted: Tue Feb 24, 2009 7:15 am
by ChiefGoFor
When performing any Core Modification (hack), make sure that you document the change in a text file and place it in your website's root directory. That way, when you upgrade your site, you know what "hacks" you have to make again (assuming that the files you edited were overwritten).

Thanks for the information Dave! This is a great way to give back to the community. :)

Re: Disable New User Registration E-mail Notifications?

Posted: Tue Feb 24, 2009 7:36 am
by davegregoire
Sorry if I didn't follow guidelines on the post. My first post ever really in a group like this.

Re: Disable New User Registration E-mail Notifications?

Posted: Wed Feb 25, 2009 3:06 am
by ChiefGoFor
davegregoire wrote:Sorry if I didn't follow guidelines on the post. My first post ever really in a group like this.
You did just fine! Nothing wrong. See you around the forums!

Re: Disable New User Registration E-mail Notifications?

Posted: Sun May 31, 2009 12:59 am
by flicman
This didn't work for me, even though the lines in the file were in the exact place described by davegregoire above.

I'm using Joomla 1.5.10 - is this even possible? I've uploaded the changes and then re-downloaded them to confirm that they are there (and they are), but still I'm getting both an Admin email and an email to the user when I start a new account.

Re: Disable New User Registration E-mail Notifications?

Posted: Mon Jun 08, 2009 5:23 pm
by zacharyrs
How can I enable a user to receive an email once they register? I seem to have the opposite problem :)

Re: Disable New User Registration E-mail Notifications?

Posted: Wed Jun 17, 2009 9:27 pm
by jtt73
These instructions worked for me with previous versions of Joomla, but not with version 1.5.11. Does anyone have any insight into how to disable new user registration e-mail notification with Joomla 1.5.10 and 1.5.11? Thanks in advance.

Re: Disable New User Registration E-mail Notifications?

Posted: Tue Jun 23, 2009 12:59 am
by spectromx5
Change the Admin email address to an ambiguous string of characters :]

Yeah because the admin email doesn't appear to serve much other purpose. I'm oblivious otherwise.

Re: Disable New User Registration E-mail Notifications?

Posted: Tue Jun 23, 2009 6:58 pm
by jtt73
Here's a workaround that I came up with... edit line 116 of /language/en-GB/en-GB.com_user.ini
to remove the activation link from the e-mail. The new user still receives the e-mail, but they cannot activate their account. Instead, I replaced the activation link with text that informs the new user that the website administrator received their account details and will contact them with further instructions.

Re: Disable New User Registration E-mail Notifications?

Posted: Tue Nov 03, 2009 12:41 pm
by campbellimray
BUMP

Any solution for this anybody. Really need to disable account activation emails to new users - the ones titled 'Account details for [user name]'

- I've tried playing around with components/com_user/controller.php
- Using 1.5.14

Thanks very much

Re: Disable New User Registration E-mail Notifications?

Posted: Tue Nov 03, 2009 3:18 pm
by ChiefGoFor
I think JM wrote something that does this... I'll ping him on Skype and get him involved in this chat.

Re: Disable New User Registration E-mail Notifications?

Posted: Mon Dec 14, 2009 9:44 pm
by dhuelsmann
As was previosly pointed out, to stop the new user email upon registration,
change administrator/components/com_users/controller.php file starting at line 175

Code: Select all

		/*
	 	 * Time for the email magic so get ready to sprinkle the magic dust...
	 	 */
		if ($isNew)
		{
			$adminEmail = $me->get('email');
			$adminName	= $me->get('name');

			$subject = JText::_('NEW_USER_MESSAGE_SUBJECT');
			$message = sprintf ( JText::_('NEW_USER_MESSAGE'), $user->get('name'), $SiteName, JURI::root(), $user->get('username'), $user->password_clear );

			if ($MailFrom != '' && $FromName != '')
			{
				$adminName 	= $FromName;
				$adminEmail = $MailFrom;
			}
			JUtility::sendMail( $adminEmail, $adminName, $user->get('email'), $subject, $message );
		}
to

Code: Select all

		/*
	 	 * Time for the email magic so get ready to sprinkle the magic dust...
	 	 */
	/*	if ($isNew)
		{
			$adminEmail = $me->get('email');
			$adminName	= $me->get('name');

			$subject = JText::_('NEW_USER_MESSAGE_SUBJECT');
			$message = sprintf ( JText::_('NEW_USER_MESSAGE'), $user->get('name'), $SiteName, JURI::root(), $user->get('username'), $user->password_clear );

			if ($MailFrom != '' && $FromName != '')
			{
				$adminName 	= $FromName;
				$adminEmail = $MailFrom;
			}
			JUtility::sendMail( $adminEmail, $adminName, $user->get('email'), $subject, $message );
		}*/
Note the addition of the /* at the beginning of the code and the */ at the end of the code to comment out the entire block of code. Alternatively, you can simply comment out the last line as in

Code: Select all

/* JUtility::sendMail( $adminEmail, $adminName, $user->get('email'), $subject, $message );*/

Re: Disable New User Registration E-mail Notifications?

Posted: Tue Dec 15, 2009 9:02 am
by Raimundus
After editing the script i got some strange results.
When changing the script as said, complete from line 175 to 189, i couldn't enter/login to the useraccount (got a scripterror 500) at the control panel. Re-editing the script as before and chaning only the last line (JUtility), the new user doesn't get an e-mail.
BUT:
The now new users aren't displayed in the useraccount screen. It's like they don't exist/ were never added.
When re-editing the script, removing all the */ and /* (which were added), this still happens. After creating a new user (test), i do get an e-mail, but the user isn't displayed in the useraccount list. (everything is set, as far as i know, to the setting before editing)
What happened?


*EDIT:
Problem solved! Made an error with the amount of */ in the script.
Last method mentioned was helpfull, only disable the emailsetting in the script.
Thanks

Re: Disable New User Registration E-mail Notifications?

Posted: Fri Dec 18, 2009 11:22 am
by Raimundus
Another registration question:

Is it possible to register multiple persons/users with the same emailaddress. For instance, we have 3 different users of the same company. We want the possibilty that each of them can login to our site with their own password and username. But backend registration is cancelled because emailaddress (info@companyname) already exists. Registration without entering an emailaddress isn't possible (yet). Is their a line in the script to disable the obligation the enter an emailaddress?

Re: Disable New User Registration E-mail Notifications?

Posted: Sun Feb 14, 2010 8:50 pm
by evilc
I had this issue too, but I do not really see closure here - I would rather not manually mod the code at all. Plugins are fine, modding the code is not...

So... Is the "System Emails" used for anything else other than these emails?
If so, what?

TIA

Re: Disable New User Registration E-mail Notifications?

Posted: Tue Aug 03, 2010 3:33 am
by marklandry
Hi, same prob.
My code's different than what I'm seeing here

Code: Select all

if ($isNew)
		{
			$adminEmail = $me->get('email');
			$adminName	= $me->get('name');
			
			if ($MailFrom != '' && $FromName != '')
			{
				$adminName 	= $FromName;
				$adminEmail = $MailFrom;
			}
			/*
				$subject = JText::_('NEW_USER_MESSAGE_SUBJECT');
				$message = sprintf ( JText::_('NEW_USER_MESSAGE'), $user->get('name'), $SiteName, JURI::root(), $user->get('username'), $user->password_clear );
			*/
			
	//-------------------------------------------intercept mail and redirect to email editor-------------------------------
		$name = $user->get('name');
			$email = $user->get('email');
						
			$query="Select * FROM #__nu_emailmsg Where code='ADD_NEW_USER'";
			
			$db->setQuery( $query );
			$rows = $db->loadObjectList();
			
			$patterns=array(	'/{name}/',	'/{username}/','/{password}/',
						'/{sitename}/','/{siteurl}/','/{activationurl}/','/{loginurl}/',
						'/{email}/','/{token}/'
						);
			$replacements_subject=array(	$name,$post['username'],$user->password_clear,
						$SiteName,	$siteURL,$activationURL,$siteURL,
						$email,''
						);
			$replacements_body=array(	$name,$post['username'],$user->password_clear,
						$SiteName,	htmlLink($siteURL),htmlLink($activationURL),htmlLink($siteURL),
						$email,''
						);
			foreach($rows as $row)
			{			
				$subject 	= preg_replace($patterns,$replacements_subject,$row->subject);
				$subject 	= html_entity_decode($subject, ENT_QUOTES);
				$message 	= preg_replace($patterns,$replacements_body,$row->body);
				$message	= html_entity_decode($message, ENT_QUOTES);
				$sender_name = $row->sender_name;
				$sender_name = html_entity_decode($sender_name, ENT_QUOTES);
				$sender_email = $row->sender_email;
				$sender_email = html_entity_decode($sender_email, ENT_QUOTES);
			}
			
			// Send email to user
			if(empty($sender_name) and empty($sender_email))
			{
				$from_name = $adminName;
				$mail_from = $adminEmail;				
			}
			//if sender name and email not set in template get default sender name and email 
			elseif($sender_name =='{sendername}' or $sender_email == '{senderemail}')
			{				
				if ( $sender_name =='{sendername}') 
				{
					$from_name = $adminName;
				}
				if ( $sender_email == '{senderemail}') 
				{
					$mail_from = $adminEmail;
				}				
			}
			else{
				$from_name = $sender_name;
				$mail_from = $sender_email;
			}
			sendHTMLMail($mail_from, $from_name, $email, $subject, $message,1);	
I've tried

Code: Select all

/*sendHTMLMail($mail_from, $from_name, $email, $subject, $message,1);*/	
and

Code: Select all

//sendHTMLMail($mail_from, $from_name, $email, $subject, $message,1);	
as well as commenting out the entire block but nothing happens

I've also tried the same thing in root/components/com_user/controller.php but still nothing...

Re: Disable New User Registration E-mail Notifications?

Posted: Wed Jun 29, 2011 2:14 pm
by jamiegee
Hi,

I'd also like to stop emails to new registered users saying 'Thank you for registering at...'. I'm using Version 1.5.22. I've also tried the hacks listed above but they don't work.

Jamie

Re: Disable New User Registration E-mail Notifications?

Posted: Wed Oct 19, 2011 7:23 am
by pcguru
Hey what do you know, 5 years later the problem still remains. No wonder I switched to a different CMS. ;)

Re: Disable New User Registration E-mail Notifications?

Posted: Sun Dec 25, 2011 11:41 am
by agustin
This 'NEW_USER_MESSAGE' is driving me nuts

I can't find the solution, I couldn't even disable the email after I create a new user by inserting /* */

Why the hell does this happend? I have been searching for hours, and no one has a solution, it seems impossible to edit that mesage or to disable it.

some try with public_html/administrator/components/com_users/controller.php

others try with public_html/administrator/language/en-GB/en-GB.com_users.ini

others try from the backend

I even tried installing a plugin...

nothing [ censored ] works...BTW: DIC-2011 :pop

Re: Disable New User Registration E-mail Notifications?

Posted: Fri Feb 03, 2012 3:11 am
by gpullen
I know its a month late.. but can I offer a simple solution to this problem that may have been missed??

Setup a filter in your mail program, or webmail, to automatically delete emails from your site with matching Subject. Or dump them in a folder and mark as read.

This way you dont miss out on any Other type of system admin emails that may be setup.

Simples!!

Re: Disable New User Registration E-mail Notifications?

Posted: Mon Feb 06, 2012 12:52 pm
by m4mariaoni
can anyone help with customizing new registration e-mail notifications. i have edited the message in language/en-GB/en-GB.com_user but the changes are not reflecting.

Thanks

Re: Disable New User Registration E-mail Notifications?

Posted: Fri Feb 17, 2012 4:02 pm
by jorgepelaez
I tried the commenting the code and the user still gets the Thank you email.
Is there any other way to stop it?

Re: Disable New User Registration E-mail Notifications?

Posted: Wed Mar 21, 2012 11:29 pm
by boluak
There are 3 user activation options in Joomla 1.6, 1.7 & 2.5 (they can be found in Users > User Manager > Options > New User Account Activation):
None - no activation required. After registration account is activated automatically and user can login. Notification email is sent to the registered user
Self - user receives an email with a link to activate his account. Once activated, user can login.
Admin - user receives an email with a link to verify his account. Once verified, administrators (users with "Receive System Email" option enabled) receives and email with a link to activate user's account. Once activated registered user receives a notification that his account has been activated by administrator. User can now login.
As you can see administrator is only notified about new user registration only if New User Account Activation is set to Admin. If it's set to None or Self no notification email is sent to the admin account. This behaviour is different from Joomla 1.5 where administrator was always notified.
I couldn't find a suitable extension to enable administrator notifications with none activation option so had to resort to a small hack on core Joomla files. Be aware that any change to the core files may be overwritten by a Joomla update. Always document changes you make to the core files so you can quickly re-do them if required. Also make backups of all files you modify.
http://www.mysysadmintips.com/web/132-j ... gistration

Hope this helps