Answers.Body: <p>Short answer: no. </p>
  
  <p>An unsubscribe request is handled here:</p>
  
  <p><a href="https://github.com/civicrm/civicrm-core/blob/master/CRM/Mailing/Form/Unsubscribe.php" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/blob/master/CRM/Mailing/Form/Unsubscribe.php</a></p>
  
  <p>The parameters to an unsubscribe request are translated into the corresponding contact, not the email address.</p>
  
  <p>So what you're asking would require the code to scan the database for contacts with the same email address to unsubscribe, which in some circumstances wouldn't be the desired result.</p>
  
  <p>Conceptually, unsubscribes/subscribes are stored/handled by contact id, not email address.</p>
  
  <p>Your options would be to write your own unsubscribe handler, or (perhaps) to use civirules.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-04T19:59:11.337Z
Answers.LastActivityDate: 2019-12-04T19:59:11.337Z
Answers.UserDisplayName: Alan Dixon
Body: <p>Often we have multiple contacts with a shared email address, as when a parent provides their own email when they register one or more children.  We use the option in civimail to only send one email to each unique address to avoid duplicates.  If they unsubscribe, only one of the family contacts is actually unsubscribed, so the other contacts with the same address continue to receive email. To the parent it looks like we are ignoring their unsubscribe request.  Is there a way to have an unsubscribe request apply to all contacts with the same email address? </p>
  
Tags: <civimail>
Title: Can all contacts that share an email be unsubscribed at once?
ThreadText: # Can all contacts that share an email be unsubscribed at once?
  
  (Asked by: username_0 on 2019-12-03)
  
  Often we have multiple contacts with a shared email address, as when a parent provides their own email when they register one or more children. We use the option in civimail to only send one email to each unique address to avoid duplicates. If they unsubscribe, only one of the family contacts is actually unsubscribed, so the other contacts with the same address continue to receive email. To the parent it looks like we are ignoring their unsubscribe request. Is there a way to have an unsubscribe request apply to all contacts with the same email address?
  
  **Tags:** civimail
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-12-04. Score: 1
  
  Short answer: no.
  
  An unsubscribe request is handled here:
  
  <https://github.com/civicrm/civicrm-core/blob/master/CRM/Mailing/Form/Unsubscribe.php>
  
  The parameters to an unsubscribe request are translated into the corresponding contact, not the email address.
  
  So what you're asking would require the code to scan the database for contacts with the same email address to unsubscribe, which in some circumstances wouldn't be the desired result.
  
  Conceptually, unsubscribes/subscribes are stored/handled by contact id, not email address.
  
  Your options would be to write your own unsubscribe handler, or (perhaps) to use civirules.
  
  
  ---
  
  