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

> Start an automation when Resend suppresses an email before sending.

`onResendEmailSuppressed` emits `email.suppressed` when Resend declines to send
a message, commonly because recipient or account policy says it should not be
attempted.

```ts automations/handle-resend-suppression.automation.ts theme={null}
import { automation } from "automate.ax"
import { onResendEmailSuppressed } from "automate.ax/resend"

export default automation("Handle Resend suppression", () => {
  const suppressed = onResendEmailSuppressed()
  suppressed.transform(({ createdAt, data }) => ({
    createdAt,
    emailId: data.email_id,
    suppression: data.suppressed,
  }))
})
```

Optional static `account` defaults to the project binding. Returns
`{ type: "email.suppressed"; createdAt; data }`, with provider-native reason,
recipient, and email fields when Resend supplies them. A suppressed event is
distinct from a failed attempt or recipient-server bounce.
