VroMailKit Email API · self-hosted

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.

Self-serve SMTP Pick Gmail, SES, Mailgun… save from the UI.
Any language Works with Node, Python, PHP, cURL, and more.
Simple API One endpoint to send. Clear JSON responses.

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.

Checking configuration…

Same key used for send API. Set it in .env as API_KEY.

Leave blank to keep the existing password.

Must be allowed / verified by your provider (especially SES).

Supported providers

Setup

Install, start, then configure SMTP from the UI.

  1. Install & start Run npm install then npm start.
  2. Configure SMTP Open SMTP settings, pick a provider (Gmail, SES…), save credentials.
  3. Send Use the playground or call /api/v1/send from your app.
cp .env.example .env
npm install
npm start
SMTP is saved from the UI into 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

POST /api/v1/send

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": []
  }
}
POST /api/v1/send-bulk

Same message to many recipients.

{
  "recipients": ["a@example.com", "b@example.com"],
  "subject": "Weekly update",
  "html": "<p>Hello everyone</p>"
}
GET /api/v1/verify

Check SMTP connection (needs API key).

GET /api/health

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_KEY401No key sent
INVALID_API_KEY403Wrong key
VALIDATION_ERROR400Bad body
SMTP_NOT_CONFIGURED503SMTP not saved in Settings
RATE_LIMITED429Too many requests
SEND_FAILED500SMTP failed

Playground

Send a real test email from this page. Configure SMTP in Settings first.