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.

Nodemailer

Send emails via Reloop SMTP using Nodemailer in Node.js.

Nodemailer SMTP Integration

You can send emails through Reloop using Nodemailer in a Node.js environment.

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?

Edit this page