1

I created a nice un/subscrube form using the excellent CiviCRM Webform module for Drupal. Now I would like to send mailings with CiviMail and include a link to my webform as the unsubscribe option.

However, CiviMail refuses to send my mailing unless I include the token action.unsubscribeUrl or action.optOutUrl in the content of my mailing.

What is the proper way to set my webform URL as my action.unsubscribeUrl?

Background discussion here. I realize there is a change that will be committed soon that will allow a token to exempt a mailing from this requirement. https://issues.civicrm.org/jira/browse/CRM-16062

2

You can already disable the setting so the tokens aren't mandatory, then use add your url to the webform (with the contact id and token checksum so they are "logged")

It's under Administer>civimail>civimail component setting http://d46.demo.civicrm.org/civicrm/admin/setting/preferences/mailing?reset=1

  • Thank you, I missed that setting when I was looking in there earlier today. I appreciate your answer. – Link Swanson May 6 '15 at 16:02
0

Currently there isn't an "easy" way to create a token for unsubscribe webforms. As X said you can turn off the unsubscribe requirement but this is a blunt instrument and requires you to still manually construct the checksum link to the webform each time.

If you're up for a little coding exercise, how about submitting a Pull-Request to the Webform-CiviCRM project implementing hook_civicrm_tokens?

  • What I do is put it (once) in the footer and voila, link all the time. But C's idea would be even easier indeed. – Xavier May 6 '15 at 19:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.