Send emails programmatically through the A1Mail API with just a few lines of code
Parameter | Type | Required | Description |
---|---|---|---|
sender_address | string | Yes | Email address that will appear in the “From” field |
recipient_address | string | Yes | Email address of the recipient |
subject | string | Yes | Subject line of the email |
body | string | Yes | Content of the email (plain text or HTML) |
headers | object | No | Optional email headers as key-value pairs (cc, bcc, etc.) |
attachment_uri | array | No | Array of URIs pointing to files you want to attach to the email |
attachment_uri
parameter which accepts an array of URLs pointing to the files you want to attach.
attachment_uri
array are directly accessible without authentication.