Sending mail
Send from your Daaymail address, with optional attachments.
The From address is always your single @daaymail.com mailbox — the server sets it for you. Sends are queued in the background so your request returns quickly.
POST BASE/v1/api/mail/send
Cookie: <session>
Content-Type: application/json
{
"to": ["friend@example.com"],
"subject": "Hello from Daaymail",
"text": "Hi — sent from my Daaysorn mailbox.",
"html": "<p>Hi — sent from my Daaysorn mailbox.</p>",
"cc": ["cc@example.com"],
"attachments": [
{
"filename": "notes.txt",
"contentType": "text/plain",
"contentBase64": "SGVsbG8sIHdvcmxkIQ=="
}
]
}
Optional cc and attachments (max 10 files, 10 MiB each, 25 MiB total). The message is stored in your sent folder. In local/dev without a delivery key configured, sends are simulated instead of delivered.
Mail isn’t delivered into inboxes yet in production. Sending and listing your sent folder already work.
