stack/apps
Aman Ganapathy 3f01358f9d
[Refactor] Make all SMTP 4yz Errors Retryable (#1293)
### Context
The `emails-low-level.tsx` file is where the sending logic of an email
over smtp occurs. It tries to send an email, and if there is an issue it
has logic to mark the email as retryable or not. Then, the
`email-queue-step` itself handles the actual retry efforts based on this
flag and a few other factors (like if max retries have been attempted).
Currently, if an error code isn't explicitly accounted for, it falls
back to being an "unknown error while sending" and is marked as not
retryable.
However, SMTP [defines the 4yz class of error codes as being
retryable](https://www.iana.org/assignments/smtp-enhanced-status-codes/smtp-enhanced-status-codes.xhtml).

### Summary of Changes
We add fallback logic at the end of the `responseCode` specific block to
mark the 4yz class of error codes as retryable. While the message here
is less specific, that is okay since any codes we want to explicitly
account for are handled above it. The main thing here is that these
should be retried.
2026-04-07 16:20:39 +00:00
..
backend [Refactor] Make all SMTP 4yz Errors Retryable (#1293) 2026-04-07 16:20:39 +00:00
dashboard Add Mintlify docs to pnpm run dev 2026-04-06 13:47:53 -07:00
dev-launchpad Add Mintlify docs to pnpm run dev 2026-04-06 13:47:53 -07:00
e2e make config typesafe (#1254) 2026-04-06 18:31:55 +00:00
hosted-components chore: update package versions 2026-03-31 10:54:12 -07:00
mock-oauth-server Session not found/expired bug fix (#1212) 2026-04-03 00:14:06 +00:00
oauth-mock-server In-source unit tests (#429) 2025-02-14 11:47:52 -08:00