Sending e-mails with Resend
November 19, 2026Resend is a service for sending transactional e-mail over an HTTP API. The free plan includes 3,000 e-mails a month, with a limit of 100 per day.
Sending requires a verified domain and an API key. Verify the domain on the Domains page. The from address has to use that domain. Create an API key on the API keys page and store it as RESEND_API_KEY.
Install the Node.js client with npm i resend. Pass that key to new Resend(apiKey) to create the client. resend.emails.send sends one message: from is the sender, to is the list of recipients, replyTo is the address replies go to, subject is the subject line, and text is the body.
import { Resend } from 'resend';const resend = new Resend(process.env.RESEND_API_KEY);const { data, error } = await resend.emails.send({from: '"Sender" <sender@example.com>',to: ['recipient@example.com'],replyTo: 'sender@example.com',subject: 'Subject',text: 'Text'});if (error) {throw new Error(error.message);}console.log('Message sent: %s', data.id);