Yes, custom code can send transactional emails, but a few gotchas:
- Your private app needs the transactional email scope. Without it, the call looks fine, but nothing sends.
- Make sure your sending domain is verified for transactional use.
- Test the exact payload in Postman first. If it works there but not in the workflow, it’s a scope/permissions issue.
- For CC, better to just pass multiple recipients in the message.to instead of forcing CC.
Start simple: one recipient, minimal payload. If that works in Postman, copy it into your workflow.