Send emails from Node.js with our official SDK. Support for Express, Fastify, NestJS, and any Node.js application.
Everything you need to send emails from Node.js
Promise-based API
Full TypeScript support
ESM and CommonJS compatible
Automatic retries
Works with any Node.js framework
Get up and running in minutes with this code example
import { Unosend } from '@unosend/node';
const unosend = new Unosend(process.env.UNOSEND_API_KEY);
// Simple email
const { data, error } = await unosend.emails.send({
from: 'hello@yourdomain.com',
to: 'user@example.com',
subject: 'Hello from Node.js',
html: '<p>Hello World!</p>',
});
// With attachments
await unosend.emails.send({
from: 'hello@yourdomain.com',
to: 'user@example.com',
subject: 'Your Invoice',
html: '<p>Please find attached.</p>',
attachments: [
{
filename: 'invoice.pdf',
content: Buffer.from(pdfData),
},
],
});Follow these steps to integrate Unosend with Node.js
Install the SDK: npm install @unosend/node
Set UNOSEND_API_KEY environment variable
Import and initialize Unosend
Call unosend.emails.send() with your email data
Easy setup in any Node.js project
Support for all email features
Comprehensive error handling
Async/await friendly
More framework integrations you might like
Send transactional emails from your Next.js application using Unosend. Works with App Router, API routes, and Server Actions.
Build beautiful email templates with React components and send them with Unosend. Use JSX to create responsive HTML emails.
Send emails from Python with our official SDK. Perfect for Django, Flask, FastAPI, and any Python application.
Start sending emails from Node.js in under 5 minutes. Free tier includes 5,000 emails/month.