-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requires unsubscribe/opt-out token to send email even though unsubscribe link is already in header #143
Comments
I think the OP problem is that they haven't inserted {domain.address} token which is also required. |
I'm able to reproduce this problem. This is sort of a Mosaico issue, but IMHO it really goes to the concept behind FlexMailer -- extensions should be able to define new template syntaxes . Mosaico is a basic example of this (because it adds different syntax for the unsub tokens), but other use-cases (like Pug, Markdown, Mustache, or Smarty) could also have their own syntaxes for the unsub tokens. I'm going to work a bit toward making the CAN-SPAM validation tweakable through FlexMailer. |
Before ------ As observed in veda-consulting-company#143, the default `versafix-1` templates use tokens like `[unsubscribe_link]` which do not match `{action.unsubscribeUrl}`. Thus, when you try to submit the mailing, it fails because the token is missing. After ----- The `[unsubscribe_link]` is treated as an alias for `{action.unsubscribeUrl}`. Thus, when you try to submit the mailing, it accepts that token. Comment ------- There's another required token, `{domain.address}`. For the moment, the patch waives that requirement because Mosaico UX handles that differently. See comments inlined.
Before ------ As observed in veda-consulting-company#143, the default `versafix-1` templates use tokens like `[unsubscribe_link]` which do not match `{action.unsubscribeUrl}`. Thus, when you try to submit the mailing, it fails because the token is missing. After ----- The `[unsubscribe_link]` is treated as an alias for `{action.unsubscribeUrl}`. Thus, when you try to submit the mailing, it accepts that token. Comment ------- There's another required token, `{domain.address}`. For the moment, the patch waives that requirement because Mosaico UX handles that differently. See comments inlined.
Accept Mosaico-style unsubscribe URLs during validation (#143)
For posterity: this should be fixed with the combination of CiviCRM 4.7.29+, Mosaico 2.0-beta3+, and FlexMailer 0.2-alpha5+. If you run on an older version of CiviCRM 4.7.x:
|
Unsubscribe link is already in the header (of the email in template) but error message says it still requires unsubscribe/opt-out token to send the mail.
The text was updated successfully, but these errors were encountered: