resend.onEmailComplained handles email.complained. Use it to suppress further mail and investigate sending practices.
automations/handle-resend-complaint.automation.ts
account defaults to the project binding.
Trigger data
Returns the shared Resend outbound event fields withevent.type: "email.complained":
event preserves the original Resend envelope.