Answers.Body: <p>It looks like your smarties aren't being replaced when the message is being sent.  The link should have a url to your civi something along this line:</p>
  
  <p><a href="http://www.yourcivi/civicrm/mailing/unsubscribe?reset=1&amp;jid=516&amp;qid=102338&amp;h=b0636ed456c5e1f5" rel="nofollow">http://www.yourcivi/civicrm/mailing/unsubscribe?reset=1&amp;jid=516&amp;qid=102338&amp;h=b0636ed456c5e1f5</a>.  </p>
  
  <p>(That is assuming the link you reported is from an actual message that someone received and not what you have in the template or footer in civi.)</p>
  
  <p>Do you have smarties enabled in your civicrm.settings.php file?</p>
  
  <p>define( 'CIVICRM_MAIL_SMARTY', 1 );</p>
  
  <p>See <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Smarty+in+mail+templates" rel="nofollow">http://wiki.civicrm.org/confluence/display/CRMDOC/Smarty+in+mail+templates</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-06T22:49:52.270Z
Answers.Text: Paul, are you saying that a standard footer unsubscribe using say {action.optOutUrl} token will not really unsubscribe a contact? What is happening with me is that token is working showing "On-Hold - Opt-Out" with the stop sign icon next to the contact's email address in their record but they continue to receive bulk email messages.
Answers.UserDisplayName: BruceW
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-13T02:23:45.347Z
Answers.Text: Thank you -- I did not have smarties enabled.  That did it.  On further reading, I may have conflated "parent" groups with "smart" groups, which obviously (now) behave differently. This would seem to be an opportunity to add a clarification to the documentation (book.civicrm.org).
Answers.UserDisplayName: charlie
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-12T21:41:13.863Z
Answers.LastActivityDate: 2015-05-12T21:41:13.863Z
Answers.UserDisplayName: Paul-Tahoe
Body: <p>Using CiviCRM <strong>4.5.8</strong>: It is my understanding that when an email recipient unsubscribes from a message sent (via CiviMail) to a smart group, then that person will be detached from that smart group and will receive no further messages sent to that same smart group.  For some reason this is not working for me.</p>
  
  <p>Example: I have GroupA defined as the parent of Subgroup1 and Subgroup1. GroupA itself has no members (a listing of GroupA shows each member with a status of "smart"). All three are defined as mailing groups, and a mailing to GroupA goes to all members of Supgroup1 and Subgroup2, as desired.  Each outgoing message contains this HTML code:</p>
  
  <pre><code>To unsubscribe from this mailing list, click &lt;a href="{action.unsubscribe}"&gt;here&lt;/a&gt;.
  </code></pre>
  
  <p>When a recipient in Subgroup2 clicks on this link they send an email message to a system-generated address, which is processed (normally, apparently) by the CiviBounces cron script.  In return they get this odd message:</p>
  
  <pre><code>You have been un-subscribed from the following groups: {unsubscribe.group}.
  </code></pre>
  
  <p>That "{unsubscribe.group}" above is exactly what they see.  Normally I'd expect to see "GroupA" (or perhaps "Subgroup2") here, but it's just the raw token name.</p>
  
  <p>The cron job doesn't pitch an error, and the recipient's database record remains unchanged.  Without manual intervention they will get subsequent messages to GroupA, which does not endear them to my organization.</p>
  
  <p>What would cause this behavior (and how to set things right)?</p>
  
Tags: <civimail><groups>
Title: CiviMail and unsubscribing from smart group
ThreadText: # CiviMail and unsubscribing from smart group
  
  (Asked by: username_0 on 2015-05-12)
  
  Using CiviCRM 4.5.8: It is my understanding that when an email recipient unsubscribes from a message sent (via CiviMail) to a smart group, then that person will be detached from that smart group and will receive no further messages sent to that same smart group.  For some reason this is not working for me.
  Example: I have GroupA defined as the parent of Subgroup1 and Subgroup1. GroupA itself has no members (a listing of GroupA shows each member with a status of "smart"). All three are defined as mailing groups, and a mailing to GroupA goes to all members of Supgroup1 and Subgroup2, as desired.  Each outgoing message contains this HTML code:
  To unsubscribe from this mailing list, click here.
  
  When a recipient in Subgroup2 clicks on this link they send an email message to a system-generated address, which is processed (normally, apparently) by the CiviBounces cron script.  In return they get this odd message:
  You have been un-subscribed from the following groups: {unsubscribe.group}.
  
  That "{unsubscribe.group}" above is exactly what they see.  Normally I'd expect to see "GroupA" (or perhaps "Subgroup2") here, but it's just the raw token name.
  The cron job doesn't pitch an error, and the recipient's database record remains unchanged.  Without manual intervention they will get subsequent messages to GroupA, which does not endear them to my organization.
  What would cause this behavior (and how to set things right)?
  
  **Tags:** civimail, groups
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-05-12. Score: 1 | Accepted answer
  
  It looks like your smarties aren't being replaced when the message is being sent. The link should have a url to your civi something along this line:
  
  <http://www.yourcivi/civicrm/mailing/unsubscribe?reset=1&jid=516&qid=102338&h=b0636ed456c5e1f5>.
  
  (That is assuming the link you reported is from an actual message that someone received and not what you have in the template or footer in civi.)
  
  Do you have smarties enabled in your civicrm.settings.php file?
  
  define( 'CIVICRM\_MAIL\_SMARTY', 1 );
  
  See <http://wiki.civicrm.org/confluence/display/CRMDOC/Smarty+in+mail+templates>
  
  > **Comments:**
  > **username_0**: Thank you -- I did not have smarties enabled.  That did it.  On further reading, I may have conflated "parent" groups with "smart" groups, which obviously (now) behave differently. This would seem to be an opportunity to add a clarification to the documentation (book.civicrm.org).  
  > **username_2**: Paul, are you saying that a standard footer unsubscribe using say {action.optOutUrl} token will not really unsubscribe a contact? What is happening with me is that token is working showing "On-Hold - Opt-Out" with the stop sign icon next to the contact's email address in their record but they continue to receive bulk email messages.  
  
  ---
  
  