Answers.Body: <p>Take out the $ signs. Smarty variables use $ signs, tokens don't. It is a little bit awkward when they're mixed in the same template.</p>
  
  <p>I don't know the legal answer to the other part of the question, but bulk mailings include it by default.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-14T20:01:53.443Z
Answers.Text: Actually when I originally did it without the $, then when I submitted a donation I got:
  <<
  There has been a critical error on your website.
  Learn more about debugging in WordPress.
  >>
  Any other suggestions, maybe about where in the template to put it, or how to format it correctly?
Answers.UserDisplayName: David Hyman
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-15T18:15:36.203Z
Answers.Text: I just tried `{domain.address}` in the offline contribution receipt template and it worked, so maybe something else going on on that site? For testing purposes I put it at the bottom just before the `<body>` tag.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-17T20:52:35.467Z
Answers.Text: The missing > was caught early, but it took a lot more fiddling, especially with the placement of the token, to get it working.  Thanks very much for helping me test and troubleshoot!
Answers.UserDisplayName: David Hyman
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-14T02:14:00.677Z
Answers.LastActivityDate: 2020-01-14T02:24:49.547Z
Answers.LastEditDate: 2020-01-14T02:24:49.547Z
Answers.UserDisplayName: Demerit
Body: <p>I am using CiviCRM 5.18.4 with WordPress 5.3.2, and residing in the United States, where we are required by law to include certain info (our postal address and an opt-out link) in ALL our emails.  I can do this in my individual messages and bulk email footers, fine.  But they don't show up in any of the Mailflow messages.</p>
  
  <p>I have tried adding </p>
  
  <pre><code>{$domain.address}
  &lt;p&gt;To comply with CAN-SPAM laws, we remind you that you can also opt-out of all mailings from us.  To do so, &lt;a href="{$action.optOutUrl}" click here&lt;/a&gt;, or send mail to {$action.optOut}. &lt;/p&gt;
  </code></pre>
  
  <p>near the bottom of the (html) message template, but it doesn't plug in the token values (or it just generates a critical error).  </p>
  
  <p>But even if I could get it to work, why am I figuring out how to tweak this?  Doesn't almost EVERYONE need to include a footer like this in almost ALL their workflow emails?  </p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-01-15T18:16:41.267Z
Comments.Text: Is the above the EXACT text in your template? You're missing a `>` just before the "click here" words.
Comments.UserDisplayName: Demerit
Tags: <email><message-templates><spam>
Title: comply with CAN-SPAM in workflow messages
ThreadText: # comply with CAN-SPAM in workflow messages
  
  (Asked by: username_0 on 2020-01-14)
  
  I am using CiviCRM 5.18.4 with WordPress 5.3.2, and residing in the United States, where we are required by law to include certain info (our postal address and an opt-out link) in ALL our emails.  I can do this in my individual messages and bulk email footers, fine.  But they don't show up in any of the Mailflow messages.
  I have tried adding 
  {$domain.address}
  To comply with CAN-SPAM laws, we remind you that you can also opt-out of all mailings from us.  To do so, , or send mail to {$action.optOut}. 
  
  near the bottom of the (html) message template, but it doesn't plug in the token values (or it just generates a critical error).  
  But even if I could get it to work, why am I figuring out how to tweak this?  Doesn't almost EVERYONE need to include a footer like this in almost ALL their workflow emails?
  
  **Tags:** email, message-templates, spam
  
  > **Comments:**
  > **username_1**: Is the above the EXACT text in your template? You're missing a `>` just before the "click here" words.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-01-14. Score: 2
  
  Take out the $ signs. Smarty variables use $ signs, tokens don't. It is a little bit awkward when they're mixed in the same template.
  
  I don't know the legal answer to the other part of the question, but bulk mailings include it by default.
  
  > **Comments:**
  > **username_0**: Actually when I originally did it without the $, then when I submitted a donation I got: << There has been a critical error on your website. Learn more about debugging in WordPress. >> Any other suggestions, maybe about where in the template to put it, or how to format it correctly?  
  > **username_1**: I just tried `{domain.address}` in the offline contribution receipt template and it worked, so maybe something else going on on that site? For testing purposes I put it at the bottom just before the `<body>` tag.  
  > **username_0**: The missing > was caught early, but it took a lot more fiddling, especially with the placement of the token, to get it working.  Thanks very much for helping me test and troubleshoot!  
  
  ---
  
  