NodeMailer
Send emails with SMTP server instead of REST API.
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
, or2587
- Username:
camped
- Password:
YOUR-API-KEY
1. Install
Get the Nodemailer package.
npm install nodemailer
2. Send email using SMTP
When configuring your SMTP integration, you’ll need to use the following credentials:
- Host: smtp.flinkk.io
- Port: 2465
- Username: camped
- Password: YOUR_API_KEY
Then use these credentials 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: 'camped',
pass: 'YOUR_API_KEY',
},
});
const info = await transporter.sendMail({
from: 'hello@@flinkk.io',
to: 'delivered@flinkk.io',
subject: 'Hello World',
html: '<strong>It works!</strong>',
});
}
main().catch(console.error);