Eusend Email Adapter

Routes Payload CMS outgoing email through the eusend REST API, an EU-native transactional provider that works on serverless.

Community 0 MIT v0.1.0

Installation

pnpm add @eusend_dev/payload-email

About

The eusend payload adapter routes all of Payload's outgoing email through the eusend REST API, an EU-native transactional email provider. Because it speaks HTTP rather than SMTP, it runs on serverless platforms where a long-lived SMTP socket is not an option. Once wired in, every message Payload sends (account verification, password reset, and anything you dispatch with `payload.sendEmail`) goes through eusend. You pass it to `buildConfig` under the `email` key. It needs an API key plus a verified default sender address and display name. Optional settings let you redirect all mail to a single address on staging, tag every send for log filtering and webhook delivery, and override open and click tracking per adapter. A `baseUrl` override exists for hitting a staging deployment. The adapter accepts nodemailer's attachment shapes, so a config ported from `@payloadcms/email-nodemailer` keeps working. Raw buffers, plain strings (read as UTF-8 unless you set `encoding` to `base64`), remote URLs the API fetches at send time, local file paths read from disk, and data URIs are all handled. It also normalizes nodemailer's mixed string and object address forms, maps both header layouts, and accepts string or Buffer bodies while refusing streams to avoid sending a blank message. A failed send throws Payload's `APIError` carrying the HTTP status and the eusend error code, so the failure surfaces in Payload's normal error handling rather than as a silent null. It is a transport only: it sends the HTML and text you give it and does not render templates server-side. Sender domains must be verified on the eusend account.

Package info

Package name
@eusend_dev/payload-email
Latest version
0.1.0
Unpacked size
27 kB
License
MIT
Last publish
Sep 7, 2026

Similar plugins

More in Email