https://api.smtp-x.com/mailer/sendOne endpoint. The header is App-Key. from is one address on a verified domain, and the display name goes in from_name. A recipient never sees the rest of the list.
One recipient
to is one address. text or html carries the message, and sending both is the better choice. A missing subject goes out as “No Subject”.
- from
- from_name
- to
- subject
- text
- html
Several recipients
to is an object of address to display name, or an array of addresses. The same address twice is mailed once. Up to 500 recipients in one request. Each recipient is delivered on its own.
- to
- subject
- html
Attachment and headers
Any file part is an attachment: up to 10 files, 25 MB together. headers is a JSON object. Reply-To is read as addresses. From, To, Cc, Bcc, Sender, Return-Path, and Content-* are set by the server.
- attachment
- headers
- Reply-To
What you get back
200 when every recipient was accepted. A partial send stays 200 and lists the failures, each with the address and the SMTP code. The message names a bad field.
- 200
- 400
- 403
- 413
- 429
- 503