send_mail
Send email messages through a Nextcloud Mail account using the configured SMTP server. Specify recipients, subject, body, and optional CC/BCC to deliver messages directly.
Instructions
Send an email through a Nextcloud Mail account.
The email is sent via the SMTP server configured for the account.
Args: account_id: The mail account ID to send from. Use list_mail_accounts to find it. to: List of recipient email addresses (at least one required). subject: Email subject line. body: Email body text (plain text or HTML depending on is_html). cc: Optional list of CC email addresses. bcc: Optional list of BCC email addresses. is_html: Set to true if the body contains HTML (default: false, plain text).
Returns: Confirmation message on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | ||
| to | Yes | ||
| bcc | No | ||
| body | Yes | ||
| is_html | No | ||
| subject | Yes | ||
| account_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |