Learn how to send your first email using the Resend Node.js SDK.
npm install resend
html
import { Resend } from 'resend'; const resend = new Resend('re_xxxxxxxxx'); (async function () { const { data, error } = await resend.emails.send({ from: 'Acme <onboarding@resend.dev>', to: ['delivered@resend.dev'], subject: 'Hello World', html: '<strong>It works!</strong>', }); if (error) { return console.error({ error }); } console.log({ data }); })();
Was this page helpful?