Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.73 KB

File metadata and controls

40 lines (30 loc) · 1.73 KB

send

Send a message over a verified domain. Pass templateId (+ optional templateData) to send from a saved or base template.

HTTP: POST /v1/send

Parameters

Field Type Required Description
from string An address on a verified domain.
to string | array One recipient or a list.
subject string Required unless supplied by a template.
html string
text string
templateId string Send using a saved template — a user template (tpl_…) or a base template (base_…). Its…
templateData object Values substituted into the template's {{merge_tags}} (e.g. {"name":"Ann"} fills…
cc string | array
bcc string | array
replyTo string
inReplyTo string
headers object Extra raw MIME headers, applied after threading headers (caller wins). Use for what the…
attachments array
scheduledAt string,number Send later: ISO 8601, simple relative natural language ("in 2 hours"), or a ms-epoch. A…
trackOpens boolean Open-tracking override for this send (HTML only). Omitted → the from-domain's default…
trackClicks boolean Click-tracking override for this send (HTML only): http(s) links are rewritten to a…

Returns

send-response — see the send-response schema.

Example

Object res = mk.send(Map.of("from", "hello@app.mailkite.dev", "to", "ada@example.com", "subject", "Hi", "text", "It works."));

← All methods · Docs · mailkite.dev