Remove Auto Generated HREF



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://">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!


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: