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 CiviMail (Moderator: Piotr Szotkowski) »
  • Simple question on opt-out and duplicate emails
Pages: [1]

Author Topic: Simple question on opt-out and duplicate emails  (Read 620 times)

effex100

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Joomla 2.5.9
  • MySQL version: 5.0.96-community
  • PHP version: 5.3
Simple question on opt-out and duplicate emails
July 16, 2012, 06:25:32 am
I have a setup where there are two groups of contacts.

The first is a group of organizations, the second is a group of individuals who are the primary public contact for that business. They are connected by an "employee of" relationship.

Most of the time these two contact have the same email address. Up until recently we only sent email newsletters to the organization group. Last week we sent an email to the individuals group. This is when we realized that email opt-outs seem to affect only one contact record even if there are others with the same email.

So my questions are:

Is there a way to make an opt-out work across contact with the same email or a script or something to run to check for this discrepancy.

If we send a mailing to both groups and check the check duplicate emails box, when CiviCRM finds a set of duplicates where one is opt-out and the other isn't will it send the email or not? Will it mark the second contact as opt-out?

Thanks for the help.

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: Simple question on opt-out and duplicate emails
July 16, 2012, 09:51:56 am

1. No, but you can potentially write a custom script that does it

2. It will not mark the second contact as opt-out. I'm not sure about the duplicate email and one is opt-out case. Can you run a test and see what happens. Please report back with the results

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

effex100

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Joomla 2.5.9
  • MySQL version: 5.0.96-community
  • PHP version: 5.3
Re: Simple question on opt-out and duplicate emails
July 19, 2012, 09:15:12 am
I tested it out. Created a group with two contacts with the same email address, set one to do not mail. When I checked deduping and   and went to the next step it showed it would send one email.

I was actually surprised that this was how it reacted. I think a DO NOT EMAIL flag should get top priority. For how much CiviCRM strives to force CAN SPAM compliance elsewhere this was unexpected behavior.

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: Simple question on opt-out and duplicate emails
July 19, 2012, 09:48:23 am

CiviCRM current model and assumption revolves primarily around a contact and not an email address. i..e a contact unsubscribes etc.  This is primarily very different than a mailing list manager where the core object is the email address

But your scenario does make sense in your case (and potentially a few other folks also). Would be great and helpful if you can figure out how/where/when to fix this. I suspect the easiest fix might be to do it as a hook when constructing the mailing recipients table

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

pkeogan

  • I post frequently
  • ***
  • Posts: 130
  • Karma: 4
    • BackOffice Thinking
Re: Simple question on opt-out and duplicate emails
July 26, 2012, 05:03:21 am
effex100.... great point.  Lobo, this could be a good make it happen project.  I am fairly certain we'd add some $$.  Of the top of my head I ca not think of a downside, but if there are situations, a check box could be added like the "Remove duplicate emails?"

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Simple question on opt-out and duplicate emails

This forum was archived on 2017-11-26.