Hono

Send email from Hono apps on Node, Bun, or edge runtimes.

Send email from Hono apps on Node, Bun, or edge runtimes.

Install

npm i resent.one

Set RESENT_API_KEY in your server environment. Keep the key off the client.

Send an email

import { Hono } from "hono";
import { Resent } from "resent.one";
const app = new Hono();
app.post("/send", async (c) => {
const resent = new Resent(process.env.RESENT_API_KEY);
const result = await resent.emails.send({
from: "Acme <noreply@yourdomain.com>",
to: "you@example.com",
subject: "Hello from Hono",
html: "<strong>It works!</strong>",
});
return c.json(result);
});
export default app;

Next steps