Disable New User Registration E-mail Notifications?

Need help with the Administration of your Joomla! site? Pop your questions in here.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
lorrendo
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon May 15, 2006 5:32 pm

Disable New User Registration E-mail Notifications?

Postby lorrendo » Mon May 15, 2006 6:27 pm

Is there a way to disable New User Registration Notifications?

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

Thanks!

lorrendo
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon May 15, 2006 5:32 pm

Re: Disable New User Registration E-mail Notifications?

Postby lorrendo » Mon Jun 05, 2006 10:49 pm

I just found the solution.

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

vibez
Joomla! Apprentice
Joomla! Apprentice
Posts: 39
Joined: Tue Jan 24, 2006 3:10 pm

Re: Disable New User Registration E-mail Notifications?

Postby vibez » Sat Nov 04, 2006 4:50 pm

won't that disable ALL system emails? Can we not just turn off the new user registration part only?


davegregoire
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Feb 24, 2009 6:35 am

Re: Disable New User Registration E-mail Notifications?

Postby davegregoire » Tue Feb 24, 2009 6:37 am

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 );
}*/

User avatar
ChiefGoFor
Joomla! Champion
Joomla! Champion
Posts: 5451
Joined: Tue Sep 13, 2005 12:22 am
Location: Omaha, Nebraska, USA
Contact:

Re: Disable New User Registration E-mail Notifications?

Postby ChiefGoFor » Tue Feb 24, 2009 7:15 am

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. :)
Kenneth Crowder - Omaha, Nebraska, USA
Global Moderator - Joomla! ...because open source matters
Recipes for people with food allergies: http://intolerantoffspring.com
"Try to answer two questions for every one question you ask." - Me

davegregoire
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Feb 24, 2009 6:35 am

Re: Disable New User Registration E-mail Notifications?

Postby davegregoire » Tue Feb 24, 2009 7:36 am

Sorry if I didn't follow guidelines on the post. My first post ever really in a group like this.

User avatar
ChiefGoFor
Joomla! Champion
Joomla! Champion
Posts: 5451
Joined: Tue Sep 13, 2005 12:22 am
Location: Omaha, Nebraska, USA
Contact:

Re: Disable New User Registration E-mail Notifications?

Postby ChiefGoFor » Wed Feb 25, 2009 3:06 am

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!
Kenneth Crowder - Omaha, Nebraska, USA
Global Moderator - Joomla! ...because open source matters
Recipes for people with food allergies: http://intolerantoffspring.com
"Try to answer two questions for every one question you ask." - Me

flicman
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Mon Jul 07, 2008 9:59 pm

Re: Disable New User Registration E-mail Notifications?

Postby flicman » Sun May 31, 2009 12:59 am

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.

zacharyrs
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 135
Joined: Fri May 02, 2008 11:57 pm

Re: Disable New User Registration E-mail Notifications?

Postby zacharyrs » Mon Jun 08, 2009 5:23 pm

How can I enable a user to receive an email once they register? I seem to have the opposite problem :)

jtt73
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Jan 11, 2008 7:30 pm

Re: Disable New User Registration E-mail Notifications?

Postby jtt73 » Wed Jun 17, 2009 9:27 pm

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.

spectromx5
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Nov 13, 2007 4:06 pm

Re: Disable New User Registration E-mail Notifications?

Postby spectromx5 » Tue Jun 23, 2009 12:59 am

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.

jtt73
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Jan 11, 2008 7:30 pm

Re: Disable New User Registration E-mail Notifications?

Postby jtt73 » Tue Jun 23, 2009 6:58 pm

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.

campbellimray
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Nov 06, 2008 9:59 pm

Re: Disable New User Registration E-mail Notifications?

Postby campbellimray » Tue Nov 03, 2009 12:41 pm

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

User avatar
ChiefGoFor
Joomla! Champion
Joomla! Champion
Posts: 5451
Joined: Tue Sep 13, 2005 12:22 am
Location: Omaha, Nebraska, USA
Contact:

Re: Disable New User Registration E-mail Notifications?

Postby ChiefGoFor » Tue Nov 03, 2009 3:18 pm

I think JM wrote something that does this... I'll ping him on Skype and get him involved in this chat.
Kenneth Crowder - Omaha, Nebraska, USA
Global Moderator - Joomla! ...because open source matters
Recipes for people with food allergies: http://intolerantoffspring.com
"Try to answer two questions for every one question you ask." - Me

User avatar
dhuelsmann
Joomla! Master
Joomla! Master
Posts: 19317
Joined: Sun Oct 02, 2005 12:50 am
Location: Omaha, NE
Contact:

Re: Disable New User Registration E-mail Notifications?

Postby dhuelsmann » Mon Dec 14, 2009 9:44 pm

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 );*/
Regards, Dave
Past Treasurer Open Source Matters, Inc.
http://www.kiwaniswest.org

Raimundus
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Mon Dec 07, 2009 8:58 am

Re: Disable New User Registration E-mail Notifications?

Postby Raimundus » Tue Dec 15, 2009 9:02 am

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

Raimundus
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Mon Dec 07, 2009 8:58 am

Re: Disable New User Registration E-mail Notifications?

Postby Raimundus » Fri Dec 18, 2009 11:22 am

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 ([email protected]) 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?

evilc
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Thu Jul 10, 2008 12:02 pm

Re: Disable New User Registration E-mail Notifications?

Postby evilc » Sun Feb 14, 2010 8:50 pm

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

marklandry
Joomla! Intern
Joomla! Intern
Posts: 77
Joined: Fri Feb 06, 2009 9:33 pm
Location: Denver
Contact:

Re: Disable New User Registration E-mail Notifications?

Postby marklandry » Tue Aug 03, 2010 3:33 am

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...

jamiegee
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Thu Jan 27, 2011 2:19 pm

Re: Disable New User Registration E-mail Notifications?

Postby jamiegee » Wed Jun 29, 2011 2:14 pm

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

pcguru
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Nov 12, 2007 9:42 am

Re: Disable New User Registration E-mail Notifications?

Postby pcguru » Wed Oct 19, 2011 7:23 am

Hey what do you know, 5 years later the problem still remains. No wonder I switched to a different CMS. ;)

agustin
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sun Dec 11, 2011 1:01 am

Re: Disable New User Registration E-mail Notifications?

Postby agustin » Sun Dec 25, 2011 11:41 am

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

gpullen
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Fri Feb 03, 2012 3:08 am

Re: Disable New User Registration E-mail Notifications?

Postby gpullen » Fri Feb 03, 2012 3:11 am

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!!

m4mariaoni
Joomla! Apprentice
Joomla! Apprentice
Posts: 40
Joined: Wed Feb 01, 2012 4:04 pm

Re: Disable New User Registration E-mail Notifications?

Postby m4mariaoni » Mon Feb 06, 2012 12:52 pm

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

jorgepelaez
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Fri Apr 01, 2011 9:40 pm

Re: Disable New User Registration E-mail Notifications?

Postby jorgepelaez » Fri Feb 17, 2012 4:02 pm

I tried the commenting the code and the user still gets the Thank you email.
Is there any other way to stop it?

boluak
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Mar 28, 2006 12:35 am

Re: Disable New User Registration E-mail Notifications?

Postby boluak » Wed Mar 21, 2012 11:29 pm

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-joomla-17-admin-email-alert-after-user-registration

Hope this helps


Return to “Administration - 1.0.x”

Who is online

Users browsing this forum: No registered users and 5 guests