Skip to main content
resend.onEmailComplained handles email.complained. Use it to suppress further mail and investigate sending practices.
automations/handle-resend-complaint.automation.ts
Optional static account defaults to the project binding.

Trigger data

Returns the shared Resend outbound event fields with event.type: "email.complained":
event preserves the original Resend envelope.