Disable New User Registration E-mail Notifications?
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.
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.
-
- Joomla! Fledgling
- Posts: 4
- Joined: Mon May 15, 2006 5:32 pm
Disable New User Registration E-mail Notifications?
Is there a way to disable New User Registration Notifications?
I don't want my e-mail box to get filled up.
Thanks!
I don't want my e-mail box to get filled up.
Thanks!
-
- Joomla! Fledgling
- Posts: 4
- Joined: Mon May 15, 2006 5:32 pm
Re: Disable New User Registration E-mail Notifications?
I just found the solution.
Under user manager > click on your admin user and turn off "Receive System Emails"
Under user manager > click on your admin user and turn off "Receive System Emails"
-
- Joomla! Apprentice
- Posts: 39
- Joined: Tue Jan 24, 2006 3:10 pm
Re: Disable New User Registration E-mail Notifications?
won't that disable ALL system emails? Can we not just turn off the new user registration part only?
-
- Joomla! Fledgling
- Posts: 3
- Joined: Fri Oct 24, 2008 4:22 am
-
- Joomla! Fledgling
- Posts: 4
- Joined: Tue Feb 24, 2009 6:35 am
Re: Disable New User Registration E-mail Notifications?
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 );
}*/
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 );
}*/
- ChiefGoFor
- Joomla! Champion
- Posts: 5614
- Joined: Tue Sep 13, 2005 12:22 am
- Location: Omaha, Nebraska, USA
- Contact:
Re: Disable New User Registration E-mail Notifications?
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.
Thanks for the information Dave! This is a great way to give back to the community.
Joomla! ...because open source matters
"Try to answer two questions for every one question you ask." - Me
"Try to answer two questions for every one question you ask." - Me
-
- Joomla! Fledgling
- Posts: 4
- Joined: Tue Feb 24, 2009 6:35 am
Re: Disable New User Registration E-mail Notifications?
Sorry if I didn't follow guidelines on the post. My first post ever really in a group like this.
- ChiefGoFor
- Joomla! Champion
- Posts: 5614
- Joined: Tue Sep 13, 2005 12:22 am
- Location: Omaha, Nebraska, USA
- Contact:
Re: Disable New User Registration E-mail Notifications?
You did just fine! Nothing wrong. See you around the forums!davegregoire wrote:Sorry if I didn't follow guidelines on the post. My first post ever really in a group like this.
Joomla! ...because open source matters
"Try to answer two questions for every one question you ask." - Me
"Try to answer two questions for every one question you ask." - Me
-
- Joomla! Apprentice
- Posts: 12
- Joined: Mon Jul 07, 2008 9:59 pm
Re: Disable New User Registration E-mail Notifications?
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.
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.
-
- Joomla! Enthusiast
- Posts: 135
- Joined: Fri May 02, 2008 11:57 pm
Re: Disable New User Registration E-mail Notifications?
How can I enable a user to receive an email once they register? I seem to have the opposite problem
-
- Joomla! Apprentice
- Posts: 7
- Joined: Fri Jan 11, 2008 7:30 pm
Re: Disable New User Registration E-mail Notifications?
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.
-
- Joomla! Fledgling
- Posts: 3
- Joined: Tue Nov 13, 2007 4:06 pm
Re: Disable New User Registration E-mail Notifications?
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.
Yeah because the admin email doesn't appear to serve much other purpose. I'm oblivious otherwise.
-
- Joomla! Apprentice
- Posts: 7
- Joined: Fri Jan 11, 2008 7:30 pm
Re: Disable New User Registration E-mail Notifications?
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.
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.
-
- Joomla! Apprentice
- Posts: 6
- Joined: Thu Nov 06, 2008 9:59 pm
Re: Disable New User Registration E-mail Notifications?
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
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
- ChiefGoFor
- Joomla! Champion
- Posts: 5614
- Joined: Tue Sep 13, 2005 12:22 am
- Location: Omaha, Nebraska, USA
- Contact:
Re: Disable New User Registration E-mail Notifications?
I think JM wrote something that does this... I'll ping him on Skype and get him involved in this chat.
Joomla! ...because open source matters
"Try to answer two questions for every one question you ask." - Me
"Try to answer two questions for every one question you ask." - Me
- dhuelsmann
- Joomla! Master
- Posts: 19659
- Joined: Sun Oct 02, 2005 12:50 am
- Location: Omaha, NE
- Contact:
Re: Disable New User Registration E-mail Notifications?
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
to
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
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 );
}
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 );
}*/
Code: Select all
/* JUtility::sendMail( $adminEmail, $adminName, $user->get('email'), $subject, $message );*/
Regards, Dave
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
-
- Joomla! Apprentice
- Posts: 10
- Joined: Mon Dec 07, 2009 8:58 am
Re: Disable New User Registration E-mail Notifications?
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
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
-
- Joomla! Apprentice
- Posts: 10
- Joined: Mon Dec 07, 2009 8:58 am
Re: Disable New User Registration E-mail Notifications?
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?
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?
-
- Joomla! Apprentice
- Posts: 37
- Joined: Thu Jul 10, 2008 12:02 pm
Re: Disable New User Registration E-mail Notifications?
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
So... Is the "System Emails" used for anything else other than these emails?
If so, what?
TIA
-
- Joomla! Intern
- Posts: 77
- Joined: Fri Feb 06, 2009 9:33 pm
- Location: Denver
- Contact:
Re: Disable New User Registration E-mail Notifications?
Hi, same prob.
My code's different than what I'm seeing here
I've tried
and
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...
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);
Code: Select all
/*sendHTMLMail($mail_from, $from_name, $email, $subject, $message,1);*/
Code: Select all
//sendHTMLMail($mail_from, $from_name, $email, $subject, $message,1);
I've also tried the same thing in root/components/com_user/controller.php but still nothing...
-
- Joomla! Apprentice
- Posts: 13
- Joined: Thu Jan 27, 2011 2:19 pm
Re: Disable New User Registration E-mail Notifications?
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
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
-
- Joomla! Apprentice
- Posts: 7
- Joined: Mon Nov 12, 2007 9:42 am
Re: Disable New User Registration E-mail Notifications?
Hey what do you know, 5 years later the problem still remains. No wonder I switched to a different CMS.
-
- Joomla! Apprentice
- Posts: 16
- Joined: Sun Dec 11, 2011 1:01 am
Re: Disable New User Registration E-mail Notifications?
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
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
-
- Joomla! Apprentice
- Posts: 8
- Joined: Fri Feb 03, 2012 3:08 am
Re: Disable New User Registration E-mail Notifications?
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!!
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!!
-
- Joomla! Apprentice
- Posts: 40
- Joined: Wed Feb 01, 2012 4:04 pm
Re: Disable New User Registration E-mail Notifications?
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
Thanks
-
- Joomla! Apprentice
- Posts: 17
- Joined: Fri Apr 01, 2011 9:40 pm
Re: Disable New User Registration E-mail Notifications?
I tried the commenting the code and the user still gets the Thank you email.
Is there any other way to stop it?
Is there any other way to stop it?
-
- Joomla! Fledgling
- Posts: 4
- Joined: Tue Mar 28, 2006 12:35 am
Re: Disable New User Registration E-mail Notifications?
http://www.mysysadmintips.com/web/132-j ... gistrationThere 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.
Hope this helps