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"
});Official clients
Use one of the official clients to set up Mailtrap and get started quickly.
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.
Migrations
Migrating from another solution? Select your provider below and migrate easily:
Ready to get started?
Last updated
Was this helpful?

