Send transactional email to another email also as CC
lösung
Hi all,
I'm trying to send a transactional email from a custom code action in a HubSpot workflow using the /marketing/v3/transactional/single-email/send endpoint. The setup is very straightforward, I'm passing the contact's primary email address as the recipient, and optionally including invoice_email as a CC if it exists and is different. This is why I have to send it from a custom code, because there is not really another option, the send-email node is only for the customers main email address.
The problem is that the email is never sent, not even to the primary recipient. There are no visible errors in the custom code execution.
To test further, I stripped everything down and tried sending to just the primary email (email) with no CC and no custom properties in the custom code, same result. No errors, but also no email is ever actually delivered or tracked in HubSpot.
I’m using a published transactional single-send template (with ID) that works when triggered manually, so I know the template itself is valid.
Is there something about custom code actions that prevents transactional email sending? Do I need to configure additional scopes or permissions for the workflow to actually send the message?
Any help would be hugely appreciated — right now it feels like the API accepts the call but just silently does nothing.