Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Learn how to send your first email using Nodemailer with SMTP.
Install
npm install nodemailer
Send email using SMTP
smtp.resend.com
465
resend
YOUR_API_KEY
import nodemailer from 'nodemailer'; async function main() { const transporter = nodemailer.createTransport({ host: 'smtp.resend.com', secure: true, port: 465, auth: { user: 'resend', pass: 're_xxxxxxxxx', }, }); const info = await transporter.sendMail({ from: 'onboarding@resend.dev', to: 'delivered@resend.dev', subject: 'Hello World', html: '<strong>It works!</strong>', }); console.log('Message sent: %s', info.messageId); } main().catch(console.error);
Was this page helpful?