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.
SMTP server details
Section titled “SMTP server details”| Setting | Value |
|---|---|
| Host | smtp.relaypost.dev |
| Port | 587 (STARTTLS) or 465 (TLS) |
| Authentication | PLAIN or LOGIN |
| Username | Your SMTP credential username |
| Password | Your SMTP credential password |
| Encryption | TLS required |
Create SMTP credentials
Section titled “Create SMTP credentials”SMTP credentials are separate from API keys. Create them from the dashboard under Settings → SMTP Credentials:
- Click Create Credential
- Enter a username (or leave blank to auto-generate)
- Add an optional description (e.g. “Production Rails App”)
- Click Create and copy the password
Configuration examples
Section titled “Configuration examples”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>",});config.action_mailer.smtp_settings = { address: "smtp.relaypost.dev", port: 587, user_name: "smtp_a1b2c3d4", password: "your-smtp-password", authentication: :plain, enable_starttls_auto: true,}EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"EMAIL_HOST = "smtp.relaypost.dev"EMAIL_PORT = 587EMAIL_USE_TLS = TrueEMAIL_HOST_USER = "smtp_a1b2c3d4"EMAIL_HOST_PASSWORD = "your-smtp-password"MAIL_MAILER=smtpMAIL_HOST=smtp.relaypost.devMAIL_PORT=587MAIL_USERNAME=smtp_a1b2c3d4MAIL_PASSWORD=your-smtp-passwordMAIL_ENCRYPTION=tlsSMTP vs API
Section titled “SMTP vs API”| SMTP | API | |
|---|---|---|
| Setup | Change SMTP config | Add HTTP calls |
| Features | Basic send | Full control (templates, scheduling, priority) |
| Speed | Connection overhead per session | Single HTTP request |
| Best for | Legacy apps, frameworks with built-in SMTP | New integrations, high-volume sending |
Both methods deliver through the same infrastructure with the same deliverability. Choose based on what fits your stack.