Reliable email delivery for founders
Mailtrap is the reliable platform that handles our email delivery with rapid sending times and high inboxing rates. This frees me up to focus on growing the business, not debugging email issues.
Deliverability-first SMTP provider that 150K+ developers trust. 24/7 expert support.
var transport = nodemailer.createTransport({
host: "live.smtp.mailtrap.io",
port: 587,
auth: {
user: "api",
pass: "<YOUR_API_TOKEN>"
}
});
transport.sendMail({
from: "Private Person <hello@am3.elcastorcillo.com>",
to: "A Test User <demo@mailtrap.io>",
subject: "Hello from Mailtrap",
text: "This is a test e-mail message."
}, (error, info) => {
if (error) {
return console.log(error);
}
console.log("Message sent: %s", info.messageId);
});
25+ copy-paste SMTP snippets for PHP, Python, Node.js, Ruby, and more. Add your credentials and start sending.
Monitor delivery status and event timelines, and inspect email bodies in plain text or HTML with spam score.
SPF, DKIM, and DMARC are set up and validated on domain verification. DKIM keys rotate monthly.
Real-time notifications for delivery, opens, clicks, bounces, and spam complaints. No polling required.
Isolated sending infrastructure. Inbox placement depends only on your sending practices.
New IPs ramp up on a gradual schedule to build sender reputation before hitting full speed.
Native support for modern dev tools and AI coding assistants.
View All IntegrationsSend onboarding flows, billing notifications, and feature updates.
Send transaction confirmations, security alerts, and market updates.
Send booking confirmations, payment receipts, and promotional offers.
Send welcome emails, feedback requests, and progress updates.
High deliverability with every plan. Upgrade for dedicated IPs, extended logs, and priority support.
To try out Mailtrap
For startups and small businesses
For growing companies
For organizations that send at scale
Mailtrap enforces a general rate limit of 150 requests per 10 seconds per API token. SMTP sending throughput depends on your plan tier and sending patterns. For optimal performance, distribute sends evenly rather than sending in bursts, and implement retry logic with exponential backoff if you encounter temporary failures. Detailed rate limits are documented in the Mailtrap docs.
Hard bounces are added to a global suppression list immediately and are not retried. Spam complaints received via feedback loops are suppressed across all streams automatically. You can view and manage suppressions directly in the dashboard or via the API.
Yes. You can add and verify multiple sending domains within a single account. Each domain requires independent DNS verification before sending. Unsubscribes are domain-specific, so a recipient unsubscribing from one domain does not affect sending from your other verified domains.
Yes. Both methods share the same sending infrastructure, IP pools, and deliverability setup. You can switch between them or use both simultaneously without any additional configuration.
Mailtrap provides dedicated migration support including DNS transition guidance, IP warm-up planning, and deliverability monitoring during the switch. Step-by-step migration guides are available for SendGrid, Mailgun, Postmark, Amazon SES, Brevo, and Mailchimp Transactional.
Soon, SMTP is turning 44. RFC 821 was published in August 1982, and the protocol has outlasted every proprietary alternative that tried to replace it.
In fact, it carries more email today than it did a decade ago, and for a good reason.
You configure your application with SMTP credentials – host, port, username, password – and the provider manages IP addresses, DNS resolution, retry logic, deliverability, and sender reputation. The Simple Mail Transfer Protocol does the rest.
This guide covers what to evaluate when choosing a provider – from the SMTP connection itself to the infrastructure behind it.
SMTP persists for three reasons that haven’t changed in four decades.
smtplib in the standard library, Ruby has Action Mailer. PHP has PHPMailer, and so on. You don’t need to install a provider-specific SDK or learn a proprietary API to send emails.For context, developer teams choose SMTP because they need the widest possible integration compatibility – e.g. when they’re connecting legacy systems or CMS platforms like WordPress, or when they want to avoid coupling their email sending to a single vendor’s SDK.
It’s also the path of least resistance when your email volume doesn’t justify learning a provider-specific API for what is, at its core, putting a message in a mailbox.
Port selection is a real engineering decision with SMTP – not a default you accept and forget. The port you choose affects security, compatibility, and whether your emails leave your infrastructure at all. Choose wrong, and your application talks to a firewall instead of a mail server.
Check for:
An SMTP transaction is a multi-step conversation between your application and the server. Understanding the sequence helps you diagnose problems and evaluate provider performance.
With STARTTLS on port 587, the sequence is:
That’s 9-10 round trips for a single message to a single recipient. Your email introduces itself, proves its identity, gets permission to speak, and then finally says what it came to say.
With implicit TLS on port 465, you skip the plaintext phase and the STARTTLS upgrade – saving 2 round trips. The TLS handshake happens at connection time, and you go straight to EHLO on the encrypted channel.
For comparison, an HTTP API sends the same email in 1-2 round trips via a single POST request. The protocol overhead difference is why high-volume senders often prefer API for programmatic sending.
But with SMTP connection pooling – reusing persistent connections across multiple messages via RSET commands instead of reconnecting each time – the per-message overhead drops significantly.
Check for:
SMTP AUTH typically uses a username and password pair over a TLS-encrypted connection. How providers generate these credentials varies.
Some providers use your account API key as the SMTP password (SendGrid uses “apikey” as the literal username with the API key as the password). Others generate separate credentials. Amazon SES derives its SMTP password from IAM credentials through a specific algorithm – it’s not the IAM access key itself. And this trips up at least one developer per Stack Overflow week.
Check for:
Getting your email out the door is the SMTP connection’s job. Getting it into the inbox is the infrastructure’s job. IP reputation, email authentication, stream separation, and failure handling are what separate inbox placement from spam.
For a deeper dive, see our guide on inbox placement, but here, I’m touching upon what makes the infrastructure tick all the right boxes.
Shared IPs pool your sender reputation with other senders on the same server. If someone in the pool sends spam, your reputation suffers – it’s like sharing a credit score with strangers. That said, shared IPs work fine for volumes under ~100K emails per month. The question is whether the SMTP provider actively monitors pool health and removes bad actors fast.
Dedicated IPs give you full control over your reputation. But there’s a trade-off: they require warm-up, gradually increasing email volume so ISPs build trust in the new IP address. Doing this manually is tedious and error-prone. Look for providers that offer automatic IP warm-up with load balancing.
Check for:
Mailtrap offers dedicated deliverability experts starting from the Business plan to assist with scaling and volume transitions. One caveat: if you need dedicated IPs at lower volumes (under 100K/month), you’ll need to look at providers that offer them on lower tiers – Mailtrap gates dedicated IPs to the Business plan.
SPF, DKIM, and DMARC are required for email delivery. Skip any of the three and you’re asking Gmail to trust you on faith. Review the provider’s domain verification process before signing up – you should get all required DNS records upfront.
After Google and Yahoo’s 2024 sender requirements tightened the enforcement of DKIM and DMARC, these aren’t optional for any sender at any volume.
Look deeper:
If you send both transactional emails (password resets, order confirmations, security alerts) and bulk emails (newsletters, promotions), verify they’re routed through separate infrastructure. Bulk campaigns carry higher complaint risk. Mixing them with transactional traffic is how your password reset emails end up in spam because marketing sent a promotion that annoyed 2% of your list.
Check for:
SMTP response codes tell you exactly what went wrong. Of course, this goes assuming the provider surfaces them properly. For instance – a 421 is the receiving server saying “try again later,” and a 550 is “don’t come back.” The difference matters for how your sending service handles each case.
Check for:
Getting listed on Spamhaus, Barracuda, or SpamCop can crater deliverability overnight. What matters is whether the provider monitors proactively and alerts you before the damage spreads.
Postmark, for example, maintains tight IP pool controls and removes bad senders aggressively. Mailtrap includes proactive blocklist monitoring with deliverability alerts as part of its infrastructure.
Either way, ask how the provider handles blocklist incidents – you want to know before it happens, not after Gmail starts bouncing your transactional emails.
Your application sends 500 emails a day until the day it sends 50,000. How your provider handles that jump (without your PagerDuty going off at 3 AM) depends on connection limits, sending rates, and throttling behavior.
SMTP has two distinct bottlenecks, and providers enforce limits on both.
Inspect:
Mailtrap documents rate limits transparently per plan.
Email throttling controls the rate of outbound traffic to recipient mail servers. Without it, sending too fast triggers rate limiting on the receiving end – and that damages your inbox placement.
Check:
This is especially critical for email marketing campaigns where reputation is everything.
SMTP handles multiple recipients natively through multiple RCPT TO commands in a single transaction. After MAIL FROM, you issue one RCPT TO per recipient, then send the DATA once. The server delivers to all accepted recipients from a single message transfer.
RFC 5321 requires servers to accept at least 100 RCPT TO commands per transaction. The newer LIMITS extension (RFC 9422, February 2024) lets servers advertise their actual maximum via RCPTMAX during the EHLO handshake – so your application can adapt without trial and error.
The trade-off: multiple RCPT TO sends the same message body to all recipients (no per-recipient personalization). For personalized transactional emails, you need separate transactions.
Check for:
SMTP’s biggest integration advantage is that you barely need one. Swap the host and credentials, and you’ve switched providers.
As mentioned, any language or framework that speaks the SMTP protocol works out of the box – no provider-specific SDK, no additional libraries, no API versioning to track. This is also what makes SMTP for developers a low-friction starting point compared to a proprietary API.
Check:
Mailtrap supports both SMTP and Email API on every plan.
How fast you go from signup to a delivered email tells you more about a provider than their feature page does.
Check:
Tip: Check if the provider supports a sandbox environment before you go to production. Inspecting sent emails, verifying HTML email rendering, and running spam checks before hitting real inboxes saves hours of debugging.
Mailtrap provides quickstart guides with copy-paste SMTP configuration for all supported languages and a complete API reference with documented error codes.
When email delivery breaks (and, at scale, it’s a question of when, not if) logs and analytics are what keeps you from guessing.
What to check
Mailtrap provides actionable analytics with domain-level insights and supports webhooks for all major events with documented payloads.
SMTP service costs are typically a rounding error compared to compute, database, and monitoring infrastructure. If you’re spending more time optimizing your email bill than your inbox placement, the priorities are inverted.
Common pricing models:
Watch for:
Check certifications and access controls early. A secure SMTP service isn’t just about TLS on the connection – it’s about the entire security posture of the provider. Compliance gaps discovered after integration mean rework.
Ask for documentation upfront. “We’re SOC 2 compliant” means nothing without the audit report. Mailtrap is ISO 27001 certified and SOC 2 compliant – documentation available at Trust Center.
Beyond standard certifications, SMTP has its own security considerations.
Mailtrap offers 24/7 support from the email deliverability team with priority response starting from the Business plan.
Switching SMTP relay providers involves DNS changes, IP warm-up, reputation building, and potential inbox placement dips during transition. The good news: SMTP’s standardization means your application code rarely needs to change. You update the host, port, and credentials. The infrastructure underneath – that’s where the careful handling happens.
Check for:
Mailtrap offers migration support including DNS guidance, warm-up planning, and deliverability monitoring, with step-by-step tutorials:
SMTP is a 43-year-old protocol that runs modern email because it got the fundamentals right: universal federation, extensibility without breaking changes, and a simplicity that makes it debuggable with a telnet session. Not many protocols from 1982 can say that. Most of them are in museums.
The SMTP integration itself is the easy part – credentials in, emails out. What determines whether those emails reach the inbox is the infrastructure behind it: IP reputation, stream separation, retry logic, and monitoring.
Quick reminder: evaluate across layers, including
Configure the SMTP server, send test emails, trigger errors intentionally, and inspect logs. The SMTP protocol makes this easy – you can literally watch the conversation between your application and the server. That transparency is one of SMTP’s oldest and most underrated advantages.
Start sending with Mailtrap SMTP
Useful links:
Step-by-step SMTP tutorials: