Skip to content

Send via SMTP

An SMTP relay is a mail server that forwards email messages from a sender’s application to the recipient’s mail server. Instead of delivering email directly, the relay acts as an intermediary that handles authentication, queue management, and retry logic, improving deliverability for applications that send high volumes of transactional or marketing email.

If your application already sends email via SMTP, you can use RelayPost as a drop-in relay. No code changes needed — just update your SMTP settings.

SettingValue
Hostsmtp.relaypost.dev
Port587 (STARTTLS) or 465 (TLS)
AuthenticationPLAIN or LOGIN
UsernameYour SMTP credential username
PasswordYour SMTP credential password
EncryptionTLS required

SMTP credentials are separate from API keys. Create them from the dashboard under Settings → SMTP Credentials:

  1. Click Create Credential
  2. Enter a username (or leave blank to auto-generate)
  3. Add an optional description (e.g. “Production Rails App”)
  4. Click Create and copy the password
const nodemailer = require("nodemailer");
const transporter = nodemailer.createTransport({
host: "smtp.relaypost.dev",
port: 587,
secure: false,
auth: {
user: "smtp_a1b2c3d4",
pass: "your-smtp-password",
},
});
await transporter.sendMail({
from: "hello@yourapp.com",
to: "user@example.com",
subject: "Hello",
html: "<p>Sent via SMTP relay</p>",
});
SMTPAPI
SetupChange SMTP configAdd HTTP calls
FeaturesBasic sendFull control (templates, scheduling, priority)
SpeedConnection overhead per sessionSingle HTTP request
Best forLegacy apps, frameworks with built-in SMTPNew integrations, high-volume sending

Both methods deliver through the same infrastructure with the same deliverability. Choose based on what fits your stack.