Docs menu

Nodemailer (SMTP)

Send emails with SMTP server instead of REST API. See SMTP relay for the full settings and limits.

Prerequisites

You will need an API key and a verified domain to get the most out of this guide:

  • Create an API key
  • Verify your domain

SMTP Credentials

When configuring your SMTP integration, you’ll need to use the following credentials:

  • Host: smtp.flinkk.io
  • Port: 2465 (SSL/TLS), or 2587 (STARTTLS)
  • Username: flinkk
  • Password: YOUR-API-KEY

1. Install

Get the Nodemailer package.

npm install nodemailer

2. Send email using SMTP

Use the credentials above to create a transport:

import nodemailer from 'nodemailer';

async function main() {
  const transporter = nodemailer.createTransport({
    host: 'smtp.flinkk.io',
    secure: true,
    port: 2465,
    auth: {
      user: 'flinkk',
      pass: 'YOUR_API_KEY',
    },
  });

  const info = await transporter.sendMail({
    from: 'hello@yourdomain.com',
    to: 'customer@example.com',
    subject: 'Hello World',
    html: '<strong>It works!</strong>',
  });
}

main().catch(console.error);