CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Receive System emails
Pages: [1]

Author Topic: Receive System emails  (Read 3624 times)

azkenreid

  • Guest
Receive System emails
January 04, 2010, 12:09:04 pm
I am using CiviCRM version 2.2.9. I have a contribution form which uses a profile. The profile is set to allow the creation of a Joomla account. I have just noticed (after a couple of months) that the "Receive system email" option is set to yes for all of the accounts that were created with this form.  Wouldn't this option normally be set to no?





Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Receive System emails
January 04, 2010, 07:05:35 pm
Quote
I have just noticed (after a couple of months) that the "Receive system email" option is set to yes for all of the accounts that were created with this form.  Wouldn't this option normally be set to no?
Where is "Receive system email" setting? Does this setting affects CiviCRM?

Kurund
Found this reply helpful? Support CiviCRM

azkenreid

  • Guest
Re: Receive System emails
January 05, 2010, 11:53:40 am
The receive system email setting is related to a Joomla user. CiviCRM is creating the Joomla user account when the form is posted. It must also be setting the Receive system emails option to yes.


Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Receive System emails
January 05, 2010, 12:51:19 pm

the joomla create user code is here:

CRM/Core/BAO/CMSUser.php, function createJoomlaUser

you might want to take a look and submit a patch that prevents the "receive system email" from being sent

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

azkenreid

  • Guest
Re: Receive System emails
January 05, 2010, 03:41:41 pm
Thank you. I'll have a look and let you know if I find a solution.

catch22

  • Guest
Re: Receive System emails
March 30, 2010, 12:09:04 pm
I can post a solution to this.  Haven't seen one else where.  I noticed my new instillation of CivicRm installed with Joomla - both yesterday (3/29/2010) is creating new users with Receive System E-mails = Yes.  (I'm looking in the Admin pannel, Site -> UserManager.  Click on your new user and see the setting is Yes)

1. Edit the file at /administrator/components/com_civicrm/civicrm/CRM/Core/BAO/CMSUser.php
2. Search for: function createJoomlaUser.  The first hit should be at line 530.
3. Go down to line 550, Which reads: $values['sendEmail']    = 1;
4. Change the 1 to a 0: $values['sendEmail']    = 1;
5. Save and close the file.

I tested it and seems to works fine.  Newly created users now are set to Receive System E-mails = No

Good luck.

(Next problem I see is that all new users created through CivicRM require my admin approval, despite my Joomla setting to not need it.)

Conga3.com

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 5
  • Should be golfing...
    • Conga3
Re: Receive System emails
July 09, 2010, 08:28:15 am
This is most definitely a CRITICAL BUG and the patch mentioned should be incorporated into the next CiviCRM release...ASAP.

With the "sendEmail" value set to "1", by default new CiviCRM Joomla created users are receiving "Administrator System Notifications".  For example, they'll be notified of new users being registered...getting their name and email.

This is most certainly NOT a desired default setting.

The default system email notification looks like :

Hello {user name},

A new user has registered at {site name}.
This e-mail contains their details:

Name: {new user name}
E-mail: {new user email}
Username: {new user username}

Please do not respond to this message. It is automatically generated and is for information purposes only.


Conga3.com

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 5
  • Should be golfing...
    • Conga3
Re: Receive System emails
July 14, 2010, 06:35:26 am
This has been fixed in 3.1.6

Joomla users, you best patch or update!
« Last Edit: July 14, 2010, 08:18:01 am by Conga3.com »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Receive System emails

This forum was archived on 2017-11-26.