# email_send_no_reply

Send No-Reply Email

## Beschreibung

Sends a single transactional email from the system no-reply
address (`oona <no-reply@mailer.oona.ai>`). Use this
for notifications and alerts that do NOT expect a reply —
report finished, run completed, threshold crossed. For
anything where the recipient might reply, use `email_send`
from a connected Gmail mailbox instead.

The sender address is fixed by app config and is NOT
overridable. The `from_name` parameter only changes the
display name shown next to it (e.g. `"Reports" <no-reply@…>`).

Recipients (`to` / `cc` / `bcc`) are passed as
comma-separated strings — `"a@x.com, b@x.com"`. At least
one `to` is required.

Body: at least one of `text_content` or `html_content` must
be present. If only one is given the mail is single-part;
if both are given it goes out as multipart (text + html).
Unlike `email_send`, neither body is Markdown — the agent
provides each format verbatim.

Attachments: optional inline base64 list, each item
`{filename, content (base64), content_type?}`. Combined size
≤ 10 MB across the whole email. `content_type` defaults to
`application/octet-stream` when omitted.

On success returns `{ sent: true, from, subject, to_count,
cc_count, bcc_count, attachment_count }`.

## Zugriff

Zugriffsprofil: `gated`. Module: `email`.
Die Freigabe im Profil ersetzt keine Account-, Workspace- oder Rollenberechtigung.

## Parameter

| Name | Typ | Pflicht | Beschreibung |
| --- | --- | --- | --- |
| `account_id` | string | Ja | Account prefix ID (acct_…). |
| `to` | string | Ja | Primary recipients, comma-separated. At least one required. |
| `cc` | string | Nein | Cc recipients, comma-separated. Optional. |
| `bcc` | string | Nein | Bcc recipients, comma-separated. Optional. |
| `subject` | string | Ja | Subject line. |
| `text_content` | string | Nein | Plain-text body. At least one of text_content / html_content is required. |
| `html_content` | string | Nein | HTML body. At least one of text_content / html_content is required. |
| `from_name` | string | Nein | Display name shown in the From header. The address itself stays the configured no-reply. |
| `attachments` | array | Nein | Optional inline attachments. Combined size ≤ 10 MB across the whole email. |

## Eingabeschema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "account_id": {
      "type": "string",
      "description": "Account prefix ID (acct_…)."
    },
    "to": {
      "type": "string",
      "description": "Primary recipients, comma-separated. At least one required."
    },
    "cc": {
      "type": "string",
      "description": "Cc recipients, comma-separated. Optional."
    },
    "bcc": {
      "type": "string",
      "description": "Bcc recipients, comma-separated. Optional."
    },
    "subject": {
      "type": "string",
      "description": "Subject line."
    },
    "text_content": {
      "type": "string",
      "description": "Plain-text body. At least one of text_content / html_content is required."
    },
    "html_content": {
      "type": "string",
      "description": "HTML body. At least one of text_content / html_content is required."
    },
    "from_name": {
      "type": "string",
      "description": "Display name shown in the From header. The address itself stays the configured no-reply."
    },
    "attachments": {
      "type": "array",
      "description": "Optional inline attachments. Combined size ≤ 10 MB across the whole email.",
      "items": {
        "type": "object",
        "properties": {
          "filename": {
            "type": "string",
            "description": "Filename shown in the mail."
          },
          "content": {
            "type": "string",
            "description": "Base64-encoded file bytes."
          },
          "content_type": {
            "type": "string",
            "description": "MIME type. Defaults to application/octet-stream."
          }
        },
        "required": [
          "filename",
          "content"
        ]
      }
    }
  },
  "required": [
    "account_id",
    "to",
    "subject"
  ],
  "type": "object"
}
```

## Ausgabeschema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "sent": {
      "type": "boolean"
    },
    "from": {
      "type": "string",
      "description": "The From header that was used (incl. display name)."
    },
    "subject": {
      "type": "string"
    },
    "to_count": {
      "type": "integer"
    },
    "cc_count": {
      "type": "integer"
    },
    "bcc_count": {
      "type": "integer"
    },
    "attachment_count": {
      "type": "integer"
    }
  },
  "type": "object"
}
```
