Who it is for and what you gain
- You use Resend for transactional email and want to keep your code, including the React Email templates your application turns into HTML.
- You want your data and your sending in the European Union, under a GDPR data processing agreement.
- You want smaller plans or a lower price per volume: compare the prices in the table below.
Steps
- Create your account and verify your domain. In the dashboard, under Domains, the assistant gives you the DKIM, SPF (MAIL FROM) and DMARC records and checks they are published. They can live alongside Resend's: they do not clash. New accounts are reviewed before they can send.
- Create an API key for that domain (one per application: if one is compromised, you revoke only that one).
- Create the webhook in Resend format, under Webhooks, with your current receiver's URL. The Test button sends you a sample event.
- Change the base URL (or the SMTP host) and the key in your application. That is all: the rest of the code stays as it is.
- Send a test and look at it in the dashboard, with its delivery. When everything is fine, retire your Resend key.
Code before and after
With Resend's official library for each language. The highlighted lines are the ones that change.
Node.js · resend
// .env
// RESEND_API_KEY=re_…
const { Resend } = require("resend");
const resend = new Resend(process.env.RESEND_API_KEY);
await resend.emails.send({
from: "Acme <hello@acme.example>",
to: ["lucia@example.com"],
subject: "Your order is on its way",
html: "<p>Hi Lucía, your order has shipped.</p>",
});// .env
// RESEND_BASE_URL=https://api.hermaily.comconst { Resend } = require("resend");
const resend = new Resend(process.env.HERMAILY_API_KEY);
await resend.emails.send({
from: "Acme <hello@acme.example>",
to: ["lucia@example.com"],
subject: "Your order is on its way",
html: "<p>Hi Lucía, your order has shipped.</p>",
});PHP · resend/resend-php
$resend = Resend::client(getenv('RESEND_API_KEY'));
$resend->emails->send([
'from' => 'Acme <hello@acme.example>',
'to' => ['lucia@example.com'],
'subject' => 'Your order is on its way',
'html' => '<p>Hi Lucía, your order has shipped.</p>',
]);putenv('RESEND_BASE_URL=api.hermaily.com'); // or in the server environment$resend = Resend::client(getenv('HERMAILY_API_KEY'));
$resend->emails->send([
'from' => 'Acme <hello@acme.example>',
'to' => ['lucia@example.com'],
'subject' => 'Your order is on its way',
'html' => '<p>Hi Lucía, your order has shipped.</p>',
]);Python · resend
import os
import resend
resend.api_key = os.environ["RESEND_API_KEY"]
resend.Emails.send({
"from": "Acme <hello@acme.example>",
"to": ["lucia@example.com"],
"subject": "Your order is on its way",
"html": "<p>Hi Lucía, your order has shipped.</p>",
})import os
import resend
resend.api_key = os.environ["HERMAILY_API_KEY"]resend.api_url = "https://api.hermaily.com"resend.Emails.send({
"from": "Acme <hello@acme.example>",
"to": ["lucia@example.com"],
"subject": "Your order is on its way",
"html": "<p>Hi Lucía, your order has shipped.</p>",
})Over SMTP
If you send over SMTP (a CMS, an ERP, an application that does not speak HTTP), the change is even shorter:
| Resend | Hermaily | |
|---|---|---|
| Host | smtp.resend.com | smtp.hermaily.com |
| Port | Whichever you use | 587 (STARTTLS) or 465 (TLS) |
| Username | resend | apikey (any value works) |
| Password | Your Resend key | Your Hermaily API key |
For the broadcast stream, add the header X-Hermaily-Stream: broadcast. More details in the SMTP documentation.
Equivalents
POST /emails POST /emails/batch
The base URL goes from https://api.resend.com to https://api.hermaily.com. Unrecognized fields are ignored without an error, so also check what is not supported.
| Resend | In Hermaily |
|---|---|
Authorization: Bearer | Your Hermaily API key. |
from, to, cc, bcc, reply_to, subject, html, text, headers | Same. |
attachments | With content in base64 (and content_id to embed). |
tags | Each value becomes a tag of the message (up to 10); each name and value is also stored as metadata. |
Header X-Hermaily-Stream inside headers | broadcast for the broadcast stream. |
/emails/batch | Up to 100 emails; as in Resend, it is validated as a whole before anything is sent. |
| Response | {"id": "…"}; errors, with statusCode, name and message. |
Webhook events
With the webhook in Resend format, each Hermaily event arrives with the name Resend uses:
| Hermaily | What happened | Resend format |
|---|---|---|
send | Left for the recipient's server | email.sent |
delivery | Delivered | email.delivered |
delivery_delay | Temporary delay | email.delivery_delayed |
bounce | Bounce | email.bounced |
complaint | Spam complaint | email.complained |
reject | Rejected before sending | email.failed |
rendering_failure | Rendering failure | email.failed |
open | Open | email.opened |
click | Click | email.clicked |
unsubscribe | Unsubscribe | Not sent |
In Resend format the signature is Svix-style, like Resend's: svix-id, svix-timestamp and svix-signature headers, with a whsec_… secret. Svix libraries verify it unchanged: just use the Hermaily webhook secret.
The full reference, with every field, is in the documentation: migrating from Resend.
What is not supported
Hermaily emulates Resend's sending, not its whole API. This is what you will not find:
- Scheduled sending (
scheduled_at): rejected with422. - Attachments by URL (
path): rejected with422. Send the content in base64. - Retrieving, updating or cancelling an email (
GET /emails/{id}and friends): they do not exist. Each message's status is in the dashboard and inGET /v1/messages/{id}of the native API. - The rest of the API (domains, audiences and contacts, broadcasts, templates, keys): it does not exist here. It is managed in the dashboard.
- Unsubscribes (
unsubscribe) are not sent in Resend format, which has no such event.
What it costs compared with Resend
Monthly cost of both services at the most common volumes:
| Emails a month | Hermaily | Plan Hermaily | Resend |
|---|---|---|---|
| 10,000 | $6 (€5) | Starter | $20 |
| 50,000 | $19.50 (€17) | Growth | $20 |
| 100,000 | $33.50 (€29) | Business | $35 |
| 250,000 | $79 (€69) | Pro | $170 |
Prices before tax. Hermaily: the cheapest plan that covers the volume, counting overage, with messages of up to 50 kB on average. Resend: prices checked on 26 November 2026 on its pricing page, cheapest monthly plan with no annual commitment that covers the volume. More providers and volumes in Pricing.
Not sure yet whether to switch? See Hermaily as a Resend alternative: why people switch and when Resend is still the better choice.
Frequently asked questions
Do I have to change my code to migrate from Resend?
No. Keep Resend's SDK and change only the base URL (RESEND_BASE_URL in Node and PHP, resend.api_url in Python) and the API key.
Do my Resend webhooks keep working?
Yes, if you create the webhook in Resend format: the same types arrive (email.delivered, email.bounced…) and the signature is Svix-style, so your verification works with the new secret.
Does React Email work?
Yes, if your application renders the template to HTML before sending it, which is the usual way: Hermaily receives the HTML.
Can I use SMTP instead of the API?
Yes. Replace smtp.resend.com with smtp.hermaily.com (port 587 with STARTTLS or 465 with TLS), with username apikey and your Hermaily key as the password.
What about scheduled_at?
Hermaily does not schedule sends: a request with scheduled_at is rejected with 422, so nothing goes out at the wrong time without you noticing.
Can I migrate gradually?
Yes. Since the code is the same, you can send part of your traffic through Hermaily and the rest through Resend until you are confident.
Try Hermaily with your Resend code
Create the account, verify your domain and send your first email with the library you already have. The Free plan includes 300 emails a month.