APIs & Integrations

liz_shaules_lf
Participant

Remove Auto Generated HREF

Hello,

We design our email with HubSpot, then send through another service, with its own unsubscribe. I code the template with:
<a target="_blank" href="${AzureSend.unsubscribe()}">unsubscribe</a>
But when the HTML is generated in the email editor, it inserts a "http://" as in:
<a target="_blank" href="http://${AzureSend.unsubscribe()}">unsubscribe</a>

Then, when we copy to the send platform it generates:
<a target="_blank" href="http://http://www.ourunsublink.com">unsubscribe</a>
And thus does not work.

Is there a way I can inject a link into the template, so that the email editor doesn't tack on a http://?

Thank you!
Liz

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Remove Auto Generated HREF

Hi @liz.shaules,

If the unsubscribe link were in a contact property in HubSpot, you could use HubSpot personalization tokens to inject the link into the email. I'm not entirely familiar with your current process, but it's possible to use the single send API to pass external values into HubSpot email:

Send Single Email | Single-send API Overview

POST /email/public/v1/singleEmail/send

0 Upvotes