Using HTML to Add Opt-In/Opt-Out Links in ELS/Emails
    • 15 Apr 2025
    • 1 Minute to read
    • Contributors
    • PDF

    Using HTML to Add Opt-In/Opt-Out Links in ELS/Emails

    • PDF

    Article summary

    You can include HTML links in an email to give consumers the option to opt in or opt out of receiving messages.

    When a consumer clicks either link, the action applies only to the email address that received the message.

    Opt-in Link

    The opt-in link allows the consumer to consent to receiving future messages at their email address:

    <a href="${primaryDemographicEmail.optInUrl}">Opt In</a>

    Opt-out Link

    The opt-out link allows the consumer to unsubscribe from future messages at their email address:

    <a href="${primaryDemographicEmail.optOutUrl}">Opt Out</a>


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence