Why are my emails sent via API failing?
There are several reasons for your email sending via API to fail. Below are some reasons for it:
- One or more mandatory Fields - "subject", "from", "to", "cc", "bcc", "reply_to" - were set as Empty Value or Invalid Value.
- The application's JSON requests do not follow a proper syntax.
- The API endpoint URL is incorrect or invalid.
- Email-sending domain is not verified.
- There is a mismatch in the email-sending domain and Agent used. The email-sending domain should be associated with the Agent you are using.
- Your ZeptoMail account is yet to be reviewed by us.
- Send mail token is invalid.
- The File cache key is invalid.
- Fields exceeding limits:
- reply_to < = 40
- to < = 340
- cc < = 100
- bcc < = 100
- Total number of attachments exceeding the limit (<=60 attachments)
- Character limit (<=250) exceeded for the name field for any of these parameters - from, to, reply_to, cc, bcc.
- Subject field exceeding the character count limit (<=500).
- Exceeding the character limit in attachment filename (<=150).
- Attachment size exceeding the limit (<=15 MB).
Refer to our help guide
here that lists the error codes and solution for each error.
If you are still facing difficulty in troubleshooting, write to support@zeptomail.com with a screenshot of the error.