EMAIL · Adapter
email-resend
via Resend
Transactional email via Resend. HTML, attachments, reply-to.
@openagentry/adapter-email-resend npm → — · Install
Use it
# Install
$ npm install @openagentry/adapter-email-resend
# Or in a workspace registered with the CLI
$ npx agentry init @openagentry/adapter-email-resend — · Default export
Pattern: lazy
The default export is always a frozen EMAILAdapter
with static category + id. Methods read env on
first call and cache the underlying instance. Missing config produces an
AgentryError at the use-site, not at import.
import default_ from '@openagentry/adapter-email-resend';
// → emailAdapter — category: 'email', id: 'email-resend' — · Environment
Configuration
| Variable | Notes |
|---|---|
| RESEND_API_KEY | Required. |
— · Reported capabilities
What the manifest says
agentry capabilities --json reports these flags from
the package's openagentry.capabilities manifest block.
- transport
- https
- attachments
- true
- html
- true
- replyTo
- true
- cc
- false
- bcc
- false
— · Failure modes
Error codes
5 stable codes this adapter throws. Each has a one-line resolution.
-
E_RESEND_AUTHRESEND_API_KEY missing or invalid. -
E_RESEND_INVALIDEmail payload rejected by Resend (invalid recipient, missing required field, etc.). -
E_RESEND_RATE_LIMITResend API rate limit reached. -
E_RESEND_NETWORKNetwork failure reaching Resend. -
E_RESEND_UPSTREAMResend returned a non-2xx response.