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) »
  • mass email opt_out broken but unsubscribe works
Pages: [1]

Author Topic: mass email opt_out broken but unsubscribe works  (Read 1474 times)

woodybrando

  • I’m new here
  • *
  • Posts: 27
  • Karma: 1
mass email opt_out broken but unsubscribe works
August 11, 2009, 04:17:41 pm
Hi All,
I'm about to send a mass email out to about 1500 contacts and the unsubscribe token is working but the opt_out token isn't. The opt_out token generates a random string of numbers and letters in the email like this:

action.optOut
mailto:o.1.32.276c7cfa71aea6b8@lostvalley.org

and if I try to not include it I get this error:

Please correct the following errors in the form fields below:

    * The following errors were detected in html message:
          o This message is missing a required token - {action.optOut}: Creates a link for recipients to opt out of receiving emails from your organization.

Now the unsubscribe token should be all i need to let people unsubscribe from mailings. So how would I either fix the opt_out token or make it so it's not required?

any help would be mucho appreciated.
thx, jayson
lostvalley.org
« Last Edit: August 11, 2009, 04:26:47 pm by woodybrando »

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: mass email opt_out broken but unsubscribe works
August 11, 2009, 07:14:40 pm

what does the unsubscribe token look like, it should be similar to the opt-out token

u can also use action.optOutUrl if u'd prefer a web way for folks to opt out rather than over email. You can also do the same for unsuscribe

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

woodybrando

  • I’m new here
  • *
  • Posts: 27
  • Karma: 1
Re: mass email opt_out broken but unsubscribe works
August 12, 2009, 10:40:20 am
Hi lobo,
Okay so it's actually the unsubscribe url that is working and the unsubscribe token is acting like the opt_out token and generating a similar string of random numbers and letters that just get sent to our catch all account at lost valley when replied to.

action.unsubscribe
mailto:u.2.12.253c7cfa42kra6c8@lostvalley.org

action.unsubscribeUrl
http://www.lostvalley.org/civicrm/mailing/unsubscribe?reset=1&lii=8&bid=15&h=2a0c7cf2k2aea6b8

Our web server isn't our mail server if that matters. Any idea what I should do to fix the unsubscribe and opt_out functions? thx, jayson

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: mass email opt_out broken but unsubscribe works
August 12, 2009, 12:42:25 pm

why dont u use the Url tokens rather than the mail tokens, i.e.

action.unsubscribeUrl
action.optOutUrl

optOut is necessary in all mailings

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

woodybrando

  • I’m new here
  • *
  • Posts: 27
  • Karma: 1
Re: mass email opt_out broken but unsubscribe works
August 12, 2009, 02:24:54 pm
Yeah, I guess that's my question is how do I turn off opt_out being required. Cause right now I've got two required tokens for each mailing opt_out and domain_address and I'd just like to make the urlunsubscribe and urlsubscribe tokens required instead, but I'm not sure where I change those options. thx lobo.

jayson
lostvalley.org

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: mass email opt_out broken but unsubscribe works
August 12, 2009, 02:54:10 pm

You cannot turn it off via the UI. You will need to hack the code to do so

note that you can use either the Url version or mail version of the token. u dont need both. Its also good practice (and according to CAN-SPAM laws, maybe even required by law) to allow folks to optout from ALL mailings sent by an org. So we do recommend folks do not modify the code :)

if u still want to hack the code, the relevant file is: CRM/Utils/Token.php

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

woodybrando

  • I’m new here
  • *
  • Posts: 27
  • Karma: 1
Re: mass email opt_out broken but unsubscribe works
August 12, 2009, 04:04:35 pm
thx lobo that answered my question. I didn't realize I could use the opt_outurl token to fulfill the opt_out token requirement. mucho gracias, jayson.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • mass email opt_out broken but unsubscribe works

This forum was archived on 2017-11-26.