One-Click List-Unsubscribe in ACS | Community
Skip to main content
filipe23353816
Level 2
March 18, 2024
Solved

One-Click List-Unsubscribe in ACS

  • March 18, 2024
  • 1 reply
  • 2769 views

Hi,

 

We have previously set SMTP headers to support list-unsubscribe. For example:

 

Precedence: bulk
List-Unsubscribe:<mailto:bounce@123.xx?subject=unsubscribe<%=escape(context.mimeMessageId) %>>
List-Unsubscribe-Post: List-Unsubscribe=One-Click

 

Now I saw about modifying SMTP parameters could break the OOTB One-Click List-Unsubscribehttps://experienceleague.adobe.com/en/docs/campaign-standard/using/administrating/configuring-channels/configuring-email-channel#list-of-email-smtp-parameters 

 

So my question is how to set the SMTP headers to be compliant with the One-Click List-Unsubscribe requirement from Google and Yahoo!?

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SatheeskannaK

@filipe23353816 If you have a stage instance can you take a look at the OOTB delivery template named "Send via email" and refer to the SMTP section. That may have the header details that you need. It may look like below,


<% if( context && context.profile ) { %>List-Unsubscribe:<<%@ value object="branding" xpath="@serverUrl" %>/lp/bl?pkey=<%=escapeUrl(context.profile.PKey)%>&OneClick=true>,<mailto:<%= context.delivery.mailParameters.replyAddress %>?subject=unsubscribe<%=escape(context.mimeMessageId) %>><% } %>
<% if( context && context.profile ) { %>List-Unsubscribe-Post:List-Unsubscribe=One-Click<% } %>

 

You may have to copy this to the template that you're already using and test it out before deploying it to the emails.

1 reply

SatheeskannaK
Community Advisor
SatheeskannaKCommunity AdvisorAccepted solution
Community Advisor
March 18, 2024

@filipe23353816 If you have a stage instance can you take a look at the OOTB delivery template named "Send via email" and refer to the SMTP section. That may have the header details that you need. It may look like below,


<% if( context && context.profile ) { %>List-Unsubscribe:<<%@ value object="branding" xpath="@serverUrl" %>/lp/bl?pkey=<%=escapeUrl(context.profile.PKey)%>&OneClick=true>,<mailto:<%= context.delivery.mailParameters.replyAddress %>?subject=unsubscribe<%=escape(context.mimeMessageId) %>><% } %>
<% if( context && context.profile ) { %>List-Unsubscribe-Post:List-Unsubscribe=One-Click<% } %>

 

You may have to copy this to the template that you're already using and test it out before deploying it to the emails.

Thanks, Sathees
filipe23353816
Level 2
March 22, 2024

That does not seem to work when I try. I don't get the unsubscribe link in Gmail and also when I try to access the link it says 

 

BAS-010096 Error return code : -2003                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

 

SatheeskannaK
Community Advisor
Community Advisor
March 23, 2024

@filipe23353816, I would suggest opening a support ticket to figure out why it's not working. Meanwhile, I will check and let you know about this.

Thanks, Sathees