Skip to content

Send via SMTP

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({
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.