Send email in one request
Connect your SMTP once. Then send mail from Node.js, Python, PHP, or any HTTP client — with a clean API and built-in docs.
Overview
VroMailKit wraps Nodemailer behind a small REST API. Configure your email provider
yourself in SMTP settings — Gmail, Outlook, Amazon SES, Mailgun,
SendGrid, Resend, and more — then call /api/v1/send from your backend.
- UI-based SMTP setup (no manual .env editing required)
- Amazon SES + major SMTP providers
- HTML + plain text, CC / BCC / reply-to
- Bulk send, rate limiting, API key auth
SMTP settings
Choose your provider. Host and port fill in automatically — add your credentials and save.
Supported providers
Setup
Install, start, then configure SMTP from the UI.
-
Install & start
Run
npm installthennpm start. - Configure SMTP Open SMTP settings, pick a provider (Gmail, SES…), save credentials.
-
Send
Use the playground or call
/api/v1/sendfrom your app.
cp .env.example .env
npm install
npm start
data/settings.json (Docker volume on deploy). .env only needs API_KEY.
API key
Every /api/v1/* call needs your key. Set it as API_KEY in .env.
X-API-Key: vro_live_change_me_to_a_secret
Authorization: Bearer vro_live_change_me_to_a_secret
Node.js
Copy, paste, change the recipient. Done.
const res = await fetch('http://localhost:3000/api/v1/send', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'vro_live_change_me_to_a_secret',
},
body: JSON.stringify({
to: 'user@example.com',
subject: 'Welcome to VroMailKit',
html: '<h1>Hello!</h1><p>Your account is ready.</p>',
text: 'Hello! Your account is ready.',
}),
});
console.log(await res.json());
const axios = require('axios');
const { data } = await axios.post(
'http://localhost:3000/api/v1/send',
{
to: 'user@example.com',
subject: 'Welcome to VroMailKit',
html: '<p>Hello from VroMailKit</p>',
},
{ headers: { 'X-API-Key': 'vro_live_change_me_to_a_secret' } }
);
console.log(data);
Python
Same idea — one POST with your API key.
import requests
res = requests.post(
"http://localhost:3000/api/v1/send",
headers={"X-API-Key": "vro_live_change_me_to_a_secret"},
json={
"to": "user@example.com",
"subject": "Welcome to VroMailKit",
"html": "<h1>Hello!</h1>",
"text": "Hello!",
},
)
print(res.json())
import httpx
with httpx.Client() as client:
res = client.post(
"http://localhost:3000/api/v1/send",
headers={"X-API-Key": "vro_live_change_me_to_a_secret"},
json={
"to": "user@example.com",
"subject": "Welcome to VroMailKit",
"text": "Hello from Python",
},
)
print(res.json())
cURL
Fastest way to smoke-test the API.
curl -X POST http://localhost:3000/api/v1/send \
-H "Content-Type: application/json" \
-H "X-API-Key: vro_live_change_me_to_a_secret" \
-d '{
"to": "user@example.com",
"subject": "Hello from VroMailKit",
"text": "This is a test email.",
"html": "<p>This is a <strong>test</strong> email.</p>"
}'
PHP
Works the same with cURL bindings.
<?php
$payload = json_encode([
'to' => 'user@example.com',
'subject' => 'Welcome to VroMailKit',
'html' => '<p>Hello from PHP</p>',
]);
$ch = curl_init('http://localhost:3000/api/v1/send');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
'X-API-Key: vro_live_change_me_to_a_secret',
],
CURLOPT_POSTFIELDS => $payload,
CURLOPT_RETURNTRANSFER => true,
]);
echo curl_exec($ch);
curl_close($ch);
Endpoints
Base URL: http://localhost:3000/api/v1
Send one email.
Body fields
| Field | Type | Description |
|---|---|---|
torequired |
string | string[] | Recipient email(s) |
subjectrequired |
string | Subject line |
textoptional* |
string | Plain text (*need text or html) |
htmloptional* |
string | HTML body (*need text or html) |
fromoptional |
string | Override default from |
cc / bccoptional |
string | string[] | Extra recipients |
replyTooptional |
string | Reply-to address |
Success response
{
"success": true,
"data": {
"id": "a1b2c3d4-...",
"messageId": "<...@smtp.gmail.com>",
"accepted": ["user@example.com"],
"rejected": []
}
}
Same message to many recipients.
{
"recipients": ["a@example.com", "b@example.com"],
"subject": "Weekly update",
"html": "<p>Hello everyone</p>"
}
Check SMTP connection (needs API key).
Service health — no API key needed.
Errors
Same shape every time — easy to handle in any language.
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Request body failed validation",
"details": [{ "field": "to", "message": "`to` is required" }]
}
}
| Code | HTTP | Meaning |
|---|---|---|
MISSING_API_KEY | 401 | No key sent |
INVALID_API_KEY | 403 | Wrong key |
VALIDATION_ERROR | 400 | Bad body |
SMTP_NOT_CONFIGURED | 503 | SMTP not saved in Settings |
RATE_LIMITED | 429 | Too many requests |
SEND_FAILED | 500 | SMTP failed |
Playground
Send a real test email from this page. Configure SMTP in Settings first.