Hello,
My team and I have been working on implementing some regularly scheduled emails for our clients using HubSpot’s Transactional Email API + the beta custom coded template/module features.
These emails are really more like marketing emails, but to leverage hubspot’s single send API features we’ve been implementing them as transactional emails (it best suits our use-case for a range of reasons; for example, because there’s a lot of bespoke data that needs to be pulled into the emails per-client in our backend, and which we don’t want to store on HubSpot). Overall our desired implementation has gone well and the emails are almost ready to ship.
We’ve included unsubscribe links in the email footer which leverage our own unsubscribe solution, since these are going to act more like marketing emails and need to comply with relevant regulations. The unsubscribe url – which we’re sending as a customProperty with the api request, and then implementing in the template – points to an endpoint of ours which implements in-house unsubscribe logic. This is important to us because we want our clients to be able to manage their subscription status both in-platform (ours) and through clicking the unsubscribe link.
The above setup for a footer unsubscribe link is working well. But to get to the point here, as a final step we want to implement those same unsubscribe links with List-Unsubscribe and List-Unsubscribe-Post headers for these emails, to comply with recently announced requirements from Google and Yahoo for marketing emails. I recently made a post on Hubspot Community inquiring whether it is possible to somehow specify values for these headers somewhere in the Transactional Email/Single-Send API flow, and per your Community Manager (and my scouring of HubSpot documentation) it looks like this is not currently supported.
This seems like a relatively simple ask and one that we’d like to formally request. From skimming around the web it looks like many email services are adding manual support here, including for teams like us with their own unsubscribe solutions: here’s an example from Postmark showing what looks like a relatively straightforward manual implementation (the two headers and their values getting sent inside a “Headers” list with the API request). Is this something Hubspot can implement for its Transactional Email/Single Send API?
TL;DR: Enable specification of values for List-Unsubscribe and List-Unsubscribe-Post headers within API requests to HubSpot’s Transactional Email / Single-Send API (example implementation from PostMark here), in support of compliance with Google/Yahoo requirements, for teams that need to implement an in-house unsubscribe solution with that API.