EXM 3.4

Hi!
I am trying to find information on how to add a unsubscribe link to an email campaign/newsletter.

I did find an article regarding ECM where you could add a link like this:

<a href="/sitecore/Unsubscribe.aspx">
  <unsubscribe>
     <sc:Text runat="server" Field="Unsubscribe" Item="<%# this.DataSource. %>" />
  </unsubscribe>
</a>

and this link should then be transformed to

<a href="yoursite/.../RedirectUrlPage.aspx>                          
  <unsubscribe>Unsubscribe</unsubscribe>
</a>
Are there a simular approach in EXM 3.4?

Regards

Patrik
  • The links in a newsletter (not a test newsletter) are always transformed to the RedirectUrlPage.aspx. You can overwrite those settings in a custom config:

    <pipelines>
      <modifyHyperlink>
        <processor type="Sitecore.Modules.EmailCampaign.Core.Pipelines.GenerateLink.Hyperlink.SkipAlreadyProcessedHyperlink, Sitecore.EmailCampaign">
          <RedirectPagePath>/newsletter/RedirectUrlPage.aspx</RedirectPagePath>
        </processor>
        <processor type="Sitecore.Modules.EmailCampaign.Core.Pipelines.GenerateLink.Hyperlink.GenerateHyperlink, Sitecore.EmailCampaign">
          <RedirectPagePath>/newsletter/RedirectUrlPage.aspx</RedirectPagePath>
          <UrlQueryKey>ec_url</UrlQueryKey>
        </processor>
      </modifyHyperlink>
    </pipelines>

    or overwrite the OpenHandler Path:

    <settings>
      <setting name="EXM.OpenHandlerPath">
        <patch:attribute name="value">/newsletter/RegisterEmailOpened.ashx</patch:attribute>
      </setting>
    </settings>

    In our case we blocked the "sitecore"-folder in IIS, so we need a different location to make EXM work ;)

    Best regards