- Documentation
- Tips / Tricks / Tutorials
- Unsubscribe Tricks
Tricks : Custom unsubscribe options in emails
When testing the {~variablename~} will only be populated by the system during either a live campaign or a one to one delivery.
These will not get populated during a "test" send via the message creation screen (or via the send() process on bus_facade_campaign_email)
1. Direct Unsubscribe
If you want to include a link that a recipient can click to unsubscribe, that skips the unsubscribe landing page (options) and simply unsubscribes the recipient across that profile:
<a href="http://{~customDomain~}/_act/optout.php?id={~mailId~}">Unsubscribe</a>
2. Direct Unsubscribe (GROUP)
If you want to include a link that a recipient can click to unsubscribe, that skips the unsubscribe landing page (options) and simply unsubscribes the recipient across all the profiles in a group:
<a href="http://{~customDomain~}/_act/rcr.php?id={~mailId~}&optOption=OUT&optOutGroup=Y">Unsubscribe</a>