For the complete documentation index, see llms-docs.txt or the site index llms.txt. Full docs corpus: llms-full-docs.txt. Prefer the markdown version of this page at /docs/examples/smtp/nodemailer.md. Product capabilities: skill.md. Docs MCP: /docs/mcp. Site MCP: /mcp.
Send Email with Nodemailer SMTP
Send transactional email via Reloop SMTP with Nodemailer in Node.js. Includes npm install, host/port auth settings, and a complete SMTP code example.
View complete runnable example on GitHub ↗
Installation
Install Nodemailer:
npm install nodemailer
Code Example
const nodemailer = require('nodemailer');
const transporter = nodemailer.createTransport({
host: 'smtp.reloop.sh',
port: 587,
secure: false, // true for port 465, false for other ports
auth: {
user: 'reloop',
pass: process.env.RELOOP_API_KEY,
},
});
async function main() {
const info = await transporter.sendMail({
from: '"Onboarding" <onboarding@reloop.sh>',
to: 'delivered@resend.dev',
subject: 'Hello from Nodemailer',
html: '<p>Congrats on sending your first email via Reloop SMTP using Nodemailer!</p>',
});
console.log('Message sent: %s', info.messageId);
}
main().catch(console.error);
Was this page helpful?