> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Send organization email

> Send a plain-text notification to organization members.

The built-in `sendEmail` action sends a plain-text notification to a current
member of the project's organization, or to every member. Use an integration
such as Gmail, Outlook, Resend, or Brevo for messages to arbitrary recipients.

## Example

```ts automations/notify-organization.automation.ts theme={null}
import { automation, onHttpRequest, sendEmail, t } from "automate.ax"

export default automation("Notify the organization", () => {
  const request = onHttpRequest({ scope: "automation" })

  sendEmail({
    to: "*",
    subject: "Automation received a request",
    text: t`Received ${request.method} at ${request.path}.`,
  })
})
```

## Inputs

| Input     | Type            | Required | Description                                                    |
| --------- | --------------- | -------- | -------------------------------------------------------------- |
| `to`      | `string \| "*"` | Yes      | Current organization member's email, or `"*"` for all members. |
| `subject` | `string`        | Yes      | Message subject.                                               |
| `text`    | `string`        | Yes      | Plain-text body.                                               |

Every input accepts a compatible signal. Sending to an address that is not a
current organization member fails.

## Output

Returns `{ id: string | null }`. `id` is the provider message ID when the
platform email service supplies one.
