Connection contract
The host is derived from the active deployment or an explicit deployment configuration.
Do not hard-code a guessed universal SMTP hostname.
Sender requirements
The API key determines project scope. Both the SMTP envelope sender and visible From address must use a domain verified in that project. The key must be active, unexpired, and authorized to send.Setup sequence
- Create a dedicated key with only
emails:send. - Copy the host, port, security mode, and username from Settings → SMTP.
- Require STARTTLS; do not silently fall back to plaintext.
- Configure envelope and visible sender addresses on a verified domain.
- Send one controlled message to an inbox you own.
- Open Emails and follow provider and delivery outcomes.
SMTP versus REST
SMTP returns SMTP acceptance and reply codes rather than an HTTP201 JSON response.
It does not expose the REST request body’s idempotencyKey.
If a caller can retry after an ambiguous SMTP disconnect, manage duplicate risk in that caller or prefer REST for the workflow.