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 »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Stopping automated emails I suspect are coming from "UpdateMembershipRecord"
Pages: [1]

Author Topic: Stopping automated emails I suspect are coming from "UpdateMembershipRecord"  (Read 478 times)

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Stopping automated emails I suspect are coming from "UpdateMembershipRecord"
August 06, 2014, 10:32:21 am
Greetings,

We use the new equivalent of UpdateMembershipRecord.php to process CiviMember records. I suspect that is the source of unnecessary emails that come to our administrative email account. Each time a member goes through a CiviCRM status change, we are notified by email of that change with an email to that particular user's Drupal profile, and the link to edit their profile, and the new status.

The reason I suspect it is coming from the cron job is that the email is sent from/by the userid which the cron job runs as. Nothing else is using that account, thus I am focusing first on the cron job being the one which creates the emails.

This is with current CiviCRM 4.4.6, but has been going on for as long as I can remember.

How is it possible to change the configuration to not send just that one administrative type email?

I am thankful,
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Stopping automated emails I suspect are coming from "UpdateMembershipRecord"
August 06, 2014, 11:58:18 am
All the system jobs can be found at civicrm/admin/job?reset=1.

If this has been going on a long time, check and make sure you don't have any other integrations set up, like with Drupal Rules module that fires off an email notification. Also check that you haven't added any custom user driven messages at: civicrm/admin/messageTemplates?reset=1

Also check that you don't have any scheduled reminders set up that may be causing this - check that out at civicrm/admin/scheduleReminders?reset=1 and then double check by looking at each of your membership types and looking at what reminders you might have set on them.

Hope that helps

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: Stopping automated emails I suspect are coming from "UpdateMembershipRecord"
August 06, 2014, 02:10:53 pm
Thank you for your quick suggestions, Emily. I had long forgotten about:

/civicrm/admin/messageTemplates?reset=1 which has a "System Workflow Messages" tab. A couple of those entries have been updated/modified so I was hopeful that I had found where the messages originate from. However, I cannot find one that has been customized capable of sending messages such as the one below I speak about:

Code: [Select]
[Subject line] Account details for tjm55 at OrgName

tjm55 (http://orgname.org/user/500) has updated account.

Edit user: http://orgname.org/user/500/edit

Delete User: http://orgname.org/user/500/delete

User Status: approved

I thought perhaps "Profiles - Admin Notification" which is customized, but like I said the subject line is drastically different than what we are receiving.

The other places you mentioned were either empty/default, or not the sought after setting either.

Does seeing the email bring to mind where it is possible to associate messages to be sent when the User Status field changes? And it is very puzzling to me what user ID generates the email... like I said in my OP, only the "drush civicrm-api job.execute" runs with that special account. A user them self updating their Drupal user account would not go anywhere near that special Linux account - as that is executing within Apache.

I am thankful,
« Last Edit: August 06, 2014, 02:12:54 pm by mdlueck »
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Stopping automated emails I suspect are coming from "UpdateMembershipRecord"
August 06, 2014, 03:06:22 pm
Have you ruled out this being a Drupal msg? Just wondering since i see /user in the example
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Stopping automated emails I suspect are coming from "UpdateMembershipRecord"
August 07, 2014, 07:10:30 am
I agree with Pete - that message seems likely to be generated on the Drupal side...

Did you check admin/config/people/accounts messages?

Looks like it's using tokens so are you using the Rules module? It could definitely be an automatic email you have attached to a rule, look at admin/config/workflow/rules. If not, look at other potential notification-based modules - messages, notifications are two common ones but there are a ton of Drupal add-on modules that could be the cause of your problem. Have you looked in your log report to try to help identify this? Do a test where you get one of these emails to fire out and then check your Log Messages to see what shows up, it might point you in the direction of what module is responsible.

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: Stopping automated emails I suspect are coming from "UpdateMembershipRecord"
August 26, 2014, 05:12:23 pm
Found it at last!

Quote
User registration notification   6.x-1.12   Notifies administrator of new user registrations.

Home » Administer » Site configuration
User registration notification

User Alerts
Send by Role or Custom Email address?:
Send to a custom email address

Email Subject: *
Account details for !user_name at !site

Email Body: *
!user_name (!user_view) has !action account.

Edit user: !user_edit

Delete User: !user_delete

User Status: !approved

!profile

If all of the CiviCRM admins have a rule in their Mozilla SeaMonkey to send such "annoyance" messages to their trash, I think we can survive quite nicely with one less module installed.  ;)

I am thankful,
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Stopping automated emails I suspect are coming from "UpdateMembershipRecord"

This forum was archived on 2017-11-26.