Send emails using SMTP without the need for any external libraries or dependencies. Connect seamlessly with your existing tools and frameworks.
SMTP Credentials
Use these credentials to connect any SMTP-compatible application to Unosend:
| Setting | Value |
|---|
| Host | smtp.unosend.co |
| Port | 587 (recommended) |
| Username | unosend |
| Password | Your API Key (un_xxxx...) |
Connection Security
STARTTLS (Recommended)
Upgrades connection to secure. Works with most email clients and services like Supabase.Port 587
SMTPS (Implicit TLS)
Immediately connects via SSL/TLS. Use when your client requires implicit TLS.Port 465
Quick Start Examples
import nodemailer from 'nodemailer';
const transporter = nodemailer.createTransport({
host: 'smtp.unosend.co',
port: 587,
secure: false, // true for 465, false for 587
auth: {
user: 'unosend',
pass: 'un_your_api_key', // Your API key
},
});
async function sendEmail() {
const info = await transporter.sendMail({
from: '[email protected]',
to: '[email protected]',
subject: 'Hello from Unosend!',
html: '<h1>It works!</h1>',
});
console.log('Message sent:', info.messageId);
}
sendEmail();
Email Tracking via SMTP
Track opens and clicks for emails sent via SMTP using custom headers. Add these headers to your email message to enable tracking:
| Header | Values | Description |
|---|
X-Unosend-Track-Opens | true or 1 | Injects a tracking pixel to detect email opens |
X-Unosend-Track-Clicks | true or 1 | Rewrites links to track clicks |
X-Unosend-Tags | tag1,tag2 | Add custom tags for categorization (comma-separated) |
Tracking headers are automatically removed before the email is delivered, so recipients won’t see them.
Examples with Tracking
const info = await transporter.sendMail({
from: '[email protected]',
to: '[email protected]',
subject: 'Newsletter',
html: '<h1>Hello!</h1><p>Click <a href="https://example.com">here</a></p>',
headers: {
'X-Unosend-Track-Opens': 'true',
'X-Unosend-Track-Clicks': 'true',
'X-Unosend-Tags': 'newsletter,january'
}
});
Supported Integrations
Unosend SMTP works with any application that supports SMTP:
Next Steps