Skip to content

Commit b5217e6

Browse files
authored
Email Service: document E_TOO_MANY_ATTACHMENTS error code (#31044)
Adds the new `E_TOO_MANY_ATTACHMENTS` error code to the Workers API error code table. This code is returned by `env.EMAIL.send()` when the `attachments` array in an EmailMessageBuilder payload exceeds 32 entries. The limit is enforced server-side to bound per-message resource consumption in the Email Service RPC layer. The REST API doc does not need updating: it uses numeric Cloudflare error codes and already cross-references the Workers table for string codes.
1 parent 96d87d3 commit b5217e6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/content/docs/email-service/api/send-emails/workers-api.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ The following error codes may be returned when sending emails:
240240
| `E_VALIDATION_ERROR` | Validation error in the payload | Invalid email format, missing required fields, malformed data |
241241
| `E_FIELD_MISSING` | Required field is missing | Missing `to`, `from`, or `subject` fields |
242242
| `E_TOO_MANY_RECIPIENTS` | Too many recipients in to/cc/bcc arrays | Combined recipients exceed 50 limit |
243+
| `E_TOO_MANY_ATTACHMENTS` | Too many attachments in `attachments` array | `attachments` array exceeds 32 entries |
243244
| `E_SENDER_NOT_VERIFIED` | Sender domain not verified | Attempting to send from unverified domain |
244245
| `E_RECIPIENT_NOT_ALLOWED` | Recipient not in allowed list | Recipient address not in `allowed_destination_addresses` |
245246
| `E_RECIPIENT_SUPPRESSED` | Recipient is on suppression list | Email address has bounced or reported your emails as spam |

0 commit comments

Comments
 (0)