An email adapter for Payload CMS 3 that sends transactional email through the AhaSend service. It is set as the email option in the Payload config with an API key and default sender details. API v2 requires an account ID, and the package ships TypeScript types.
Payload Ahasend Email Adapter
Installation
npm i payload-email-ahasend1
Stars
0
Forks
1
Open Issues
1 weeks ago
Last Updated
0
Weekly Downloads
v2.0.0
npm Version
107.0 KB
Unpacked Size
0
Dependencies
Trends appear after 7 days of data. Daily snapshots have not started yet.
Trends appear after 7 days of data. Daily snapshots have not started yet.
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/944525693-root)<a href="https://payloaddirectory.dev/plugins/944525693-root"><img src="https://payloaddirectory.dev/badge/944525693-root.svg" alt="Payload Directory"></a>README
A custom email adapter for Payload CMS that integrates with the Ahasend email service API.
npm install payload-email-ahasend
# or
yarn add payload-email-ahasend
# or
pnpm add payload-email-ahasend
import { ahasendAdapter } from "payload-email-ahasend";
import { buildConfig } from "payload";
export default buildConfig({
// ... other config options
email: ahasendAdapter({
apiKey: "your-ahasend-api-key",
defaultFromAddress: "[email protected]",
defaultFromName: "Your Company Name",
}),
});
import { ahasendAdapter } from "payload-email-ahasend";
import { buildConfig } from "payload";
export default buildConfig({
// ... other config options
email: ahasendAdapter({
apiKey: "your-ahasend-v2-api-key",
defaultFromAddress: "[email protected]",
defaultFromName: "Your Company Name",
apiVersion: "v2",
accountId: "your-account-id",
}),
});
AHASEND_API_KEY=your-api-key-here
AHASEND_ACCOUNT_ID=your-account-id-for-v2
| Option | Type | Required | Description |
|---|---|---|---|
apiKey | string | ✅ | Your Ahasend API key |
defaultFromAddress | string | ✅ | Default sender email address |
defaultFromName | string | ✅ | Default sender name |
apiVersion | 'v1' | 'v2' | ❌ | API version to use (default: 'v1') |
accountId | string | v2 only | Account ID for API v2 |
The adapter supports:
The adapter provides detailed error information including:
The package includes full TypeScript definitions and interfaces for type safety.
| Version | Payload CMS | Next.js | React | Node.js | AhaSend API |
|---|---|---|---|---|---|
| 2.0.0+ | 3.0.0+ | 14/15/16 | 18.2+ / 19+ | 20.9.0+ | v1 & v2 |
| 1.0.5 | 3.0.0+ | 14/15 | 18.2+ / 19+ | 18.20.2+ | v1 only |
| 1.0.4 | 3.25.0 | Any | 18.2+ | 18.20.2+ | v1 only |
MIT
Contributions are welcome! Please feel free to submit a Pull Request.
Topics
Tags
payload usesend
Email adapter that sends Payload emails through the open-source, self-hostable useSend API
84511/wk8v3
payload cloudflare email adapter
Send Payload transactional email through the Cloudflare Email Service Workers binding
762.7k/wk3v3
payload order emails
Transactional emails on Payload order creation and status changes with overridable templates
570/wk1v3
payload plugin
Email advocacy and contact management with broadcasts, letter campaigns and delivery tracking inside Payload
560/wk1v3
eusend payload
Email adapter that sends Payload emails through the eusend EU-hosted transactional email REST API
520/wk1v3 v4
payload plugin easyemail
Visual EasyEmail Pro template editor and starter library inside the Payload admin
374/wk2v3