ncloud_sens_send_mail
Send email via Naver Cloud SENS Mail API, supporting templates, individual or group delivery, attachments, and dry-run preview before sending.
Instructions
Send email through SENS Mail (POST /mail/v2/services/{serviceId}/requests — the unified API that replaced Cloud Outbound Mailer on 2026-09-17). Either templateNo, or all of senderAddress/title/body, is required; either recipients or recipientGroupFilter is required. Returns HTTP 202 with requestId (track with ncloud_sens_get_mail_request). Use dryRun=true to preview the request body without sending.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Body (≤500 KB UTF-8, HTML allowed, supports ${key} substitution). Required unless templateNo is given | |
| title | No | Subject (≤500 bytes UTF-8, supports ${key} substitution). Required unless templateNo is given | |
| dryRun | No | If true, returns the request preview without sending | |
| serviceId | No | Mail service ID in NRN form (e.g. ncp:mail:kr:1********2:main). Defaults to NCLOUD_SENS_MAIL_SERVICE_ID / NCLOUD_SENS_SERVICE_ID. Find it with ncloud_sens_list_projects (mailService.serviceId). A 'Forbidden' reply means that project's Mail channel is not enabled (useMail=false) — pick a project with useMail=true. | |
| individual | No | true (default) = one mail per recipient; false = grouped mail (enables CC/BCC, disables advertising) | |
| parameters | No | Shared ${key} substitution values | |
| recipients | No | Recipients (≤100,000; at least one TO). Required unless recipientGroupFilter is given | |
| senderName | No | Sender display name (≤69 bytes UTF-8) | |
| templateNo | No | Template number — when set, sender/title/body come from the template | |
| advertising | No | true = advertising mail (adds the (광고) notice and unsubscribe text; not allowed with individual=false) | |
| attachFileIds | No | Attachment file IDs (≤10 MB each, ≤20 MB total) | |
| senderAddress | No | Sender address (≤254 bytes). Required unless templateNo is given | |
| confirmAndSend | No | true = send only after console approval (default false) | |
| unsubscribeMessage | No | Custom unsubscribe text (when useBasicUnsubscribeMessage=false) | |
| reservationDateTime | No | Scheduled send time, ISO 8601 with offset (e.g. 2026-10-01T09:00:00+09:00), at most 30 days ahead | |
| recipientGroupFilter | No | Send to address groups instead of explicit recipients (individual=true only) | |
| useBasicUnsubscribeMessage | No | Use the default unsubscribe text for advertising mail (default true) |