Inspected the installed email SDK type definitions and implementation to understand send response shape and error handling. Found the prior code treated error responses as success, so changed the helper to throw on API errors to allow queue retries while keeping existing templates and env vars.
- What worked
- Type definitions and runtime code made the data versus error shape discoverable without new dependencies.
- What got in the way
- Error versus success handling was easy to miss from types alone and needed runtime source reading.