> ## 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.

# On Resend email sent

> Start an automation when Resend accepts an email for sending.

`onResendEmailSent` emits `email.sent` after Resend accepts a message into its
delivery pipeline. This is not proof that the recipient server accepted it.

```ts automations/record-resend-send.automation.ts theme={null}
import { automation } from "automate.ax"
import { onResendEmailSent } from "automate.ax/resend"

export default automation("Record Resend sends", () => {
  const sent = onResendEmailSent()
  sent.transform(({ createdAt, data }) => ({
    createdAt,
    emailId: data.email_id,
  }))
})
```

Optional static `account` defaults to the project Resend binding. Returns
`{ type: "email.sent"; createdAt: string; data: Record<string, JsonValue> }`.
Provider-native `data` normally carries the email ID and recipients. Use the
delivered trigger for downstream-server acceptance.
