Answers.Body: <p>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")</p>
  
  <p>It's under Administer>civimail>civimail component setting <a href="http://d46.demo.civicrm.org/civicrm/admin/setting/preferences/mailing?reset=1" rel="nofollow">http://d46.demo.civicrm.org/civicrm/admin/setting/preferences/mailing?reset=1</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T16:02:32.273Z
Answers.Text: Thank you, I missed that setting when I was looking in there earlier today. I appreciate your answer.
Answers.UserDisplayName: LunkRat
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T15:59:01.723Z
Answers.LastActivityDate: 2015-05-06T15:59:01.723Z
Answers.UserDisplayName: Xavier
Answers.Body: <p>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.</p>
  
  <p>If you're up for a little coding exercise, how about submitting a Pull-Request to the Webform-CiviCRM project implementing hook_civicrm_tokens?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T19:02:41.040Z
Answers.Text: 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.
Answers.UserDisplayName: Xavier
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-06T18:52:35.413Z
Answers.LastActivityDate: 2015-05-06T18:52:35.413Z
Answers.UserDisplayName: Coleman
Body: <p>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.</p>
  
  <p>However, CiviMail refuses to send my mailing unless I include the token <code>action.unsubscribeUrl</code> or <code>action.optOutUrl</code> in the content of my mailing. </p>
  
  <p>What is the proper way to set my webform URL <em>as</em> my <code>action.unsubscribeUrl</code>?</p>
  
  <p>Background discussion <a href="http://forum.civicrm.org/index.php?topic=19728.0" rel="nofollow">here</a>. I realize there is a change that will be committed soon that will allow a token to exempt a mailing from this requirement. <a href="https://issues.civicrm.org/jira/browse/CRM-16062" rel="nofollow">https://issues.civicrm.org/jira/browse/CRM-16062</a></p>
  
Tags: <civimail><drupal><webform-civicrm><tokens>
Title: Can I use a CIviCRM Webform URL in place of the required action.unsubscribeUrl?
ThreadText: # Can I use a CIviCRM Webform URL in place of the required action.unsubscribeUrl?
  
  (Asked by: username_0 on 2015-05-06)
  
  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](http://forum.civicrm.org/index.php?topic=19728.0). 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>
  
  **Tags:** civimail, drupal, webform-civicrm, tokens
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-05-06. Score: 2 | Accepted answer
  
  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>
  
  > **Comments:**
  > **username_0**: Thank you, I missed that setting when I was looking in there earlier today. I appreciate your answer.  
  
  ---
  
  ### Answer by username_2 on 2015-05-06. Score: 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?
  
  > **Comments:**
  > **username_1**: 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.  
  
  ---
  
  