Documentation
Complete email infrastructure for developers. Send production emails, test in sandbox, and run email campaigns - all in one platform.
Build, test, and send emails with confidence using Mailtrap's comprehensive email platform designed for developers and product teams.
Official SDKs
Get started quickly with our official SDKs for your favorite programming language.
Get started in 5 Minutes
Setting up Mailtrap should be the easiest part of your email journey. With clear endpoints, copy-paste-ready examples, and instant authentication, you'll send your first email in minutes — not hours.
No guesswork, no complexity — just your first successful email, fast.
// Send your first email
const { MailtrapClient } = require("mailtrap");
const client = new MailtrapClient({
token: "YOUR_API_TOKEN"
});
await client.send({
from: { email: "hello@example.com" },
to: [{ email: "user@example.com" }],
subject: "Hello from Mailtrap!",
text: "Welcome to Mailtrap Email API"
});Quick start guides
Choose your product and get up and running quickly with our step-by-step guides.
Explore features
Discover the full range of features and capabilities across our email platform.
Guides & integrations
Learn how to integrate Mailtrap with your favorite tools and migrate from other services.
New to Mailtrap? Start with our Email Sandbox to test your emails in a safe environment, then move to Email API/SMTP for production sending.
Start with a Free plan
Get started with Mailtrap's free plan. No credit card required. Test emails, send up to 4000 emails/m, and explore all features.
Talk to Sales
Need a custom plan or have enterprise requirements? Our team is ready to help you find the perfect solution.
Last updated
Was this helpful?
Was this helpful?

