Environment variables
Store credentials outside source control:.env to .gitignore and commit a .env.example with placeholder values only.
Test sending
Start with one recipient you control. Use a subject prefix such as[dev] or [staging] so test mail is easy to identify.
Before sending a new template, use the dry-run option to render the message without sending it.
Local webhook testing
During development:- Run your webhook receiver locally.
- Expose it through a temporary HTTPS tunnel.
- Register the tunnel URL as your webhook endpoint.
- Run webhook validation.
- Store the raw test event and verify signature validation before adding business logic.
Avoid common mistakes
- Do not put API keys in browser JavaScript.
- Do not commit
.envfiles, webhook signing keys, or private DKIM keys. - Do not test with large recipient lists.
- Do not use production customer addresses for template experiments.
- Do not assume a successful API response means inbox placement. Use webhooks and mailbox checks.

