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) »
  • issues with CiviCRM not respecting email opt-out and un-subscribes
Pages: [1]

Author Topic: issues with CiviCRM not respecting email opt-out and un-subscribes  (Read 500 times)

Sean Madsen

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 5
  • CiviCRM implementer/developer
    • Bikes Not Bombs
  • CiviCRM version: 4.6
  • CMS version: Drupal 7
issues with CiviCRM not respecting email opt-out and un-subscribes
August 17, 2012, 10:00:31 am
Sorry if this concept is already discussed somewhere, but searching for it is difficult...

We're facing some issues that make it difficult to reliably ensure that contacts are permanently un-subscribed or opted-out from our email lists.

An example: Sally registers for an event and also signs up her son Max using her email. Several weeks later we send out an email newsletter with the de-dupe mailings setting checked. Sally receives the email and chooses to opt-out. Her contact record is marked  "opt-out". Good. However Max's record is left with the same email address and is not marked as opt-out. Our next newsletter won't send to Sally's contact record (good), but it will send to Max's contact record (bad) because he has the same email address as Sally -- so Sally's opt-out essentially didn't work.

Though there may be some work-arounds to this particular case, I could come up with other similar examples. It strikes me that the underlying problem here is with the data model used to store un-subscribes and opt-outs.

Here's what I think would be better:
  • The tables `civicrm_contact` and `civicrm_email` become joined through a many-to-many relationship with an additional table like `civicrm_contact_email`
  • `civicrm_email` gets a unique index on the `email` field
  • (perhaps) `civicrm_email` also gets a new field `is_opt_out` (though there could be other approaches here)
  • The point is: when processing an opt-out, CiviCRM marks the email as opt-out instead of the contact

Ok clearly there are a lot of other things to think about with this sort of hypothetical change. For example, if someone wants to un-subscribe (instead of opt-out) from a particular mailing list, it would be great if that could happen at the email-address-level as well, but we'd still want to retail the functionality to have contacts attached to groups instead of just having email addresses attached to groups. Complicated for sure. As well, what would happen to fields like `civicrm_email.location_type_id`, `is_billing`, etc. I imagine they'd get moved to the new `civicrm_contact_email` table.

Is this stuff on anyone else's mind? Are the reliable work-arounds that people use currently? Is anyone else interested in working on these issues? I don't have experience as a CiviCRM developer, but I'd love to help out somehow if I can!

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: issues with CiviCRM not respecting email opt-out and un-subscribes
August 17, 2012, 01:50:40 pm
The issue of people sharing emails is problematic - and i don't think that changing to 'opt out' working on the email rather than the contact solves it, i think it just swings it over to the other side of the problem

I can think of several real case scenarios where John and Anne share an email - and John is signed up to one list and Mary to another. Mary 'opts outs' - shouldn't affect John.

One solution at the Users end is to make it really clear

a/ who the email is going to - use tokens - including in the Opt Out section in the footer eg To Opt-Out John click here.

b/ have the opt out page clearly identify which Contact is being opted out - not sure if this is in core now. I know we customised years ago so the opt out / unsubscribe page provided by the Contact name and the Email address to try and avoid people opting out somebody else eg when a mailing gets fwded to someone else eg 'If want to unsub JOHN from this list using the email address johnandmary@xyz, then click below. If you are not  .... (log in maybe)

Does that help?
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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • issues with CiviCRM not respecting email opt-out and un-subscribes

This forum was archived on 2017-11-26.