I tested an email template via CiviMail and the unsubscribe link works and the HTML shows it. In the source it comes up as
<a href="{action.optOutUrl}" style="text-decoration: none; color:
#fffffe;" target="_blank">Unsubscribe here.</a>
But if the same email template is triggered & sent via CiviRules (you can choose the template along with rules and conditions on how to trigger it), the tag shown above gets stripped out leaving just the text "Unsubscribe here" which has no link - just text! So no one can actually unsub.
Does anyone know how to deal with this? Is there a way to just use the link without using the token? I went through the CiviCRM documentation and didn't find what I was looking for :(
I tried the different versions of the tokens related to unsubscribe/opt out but no joy.
Cheers