◐ Shell
clean mode source ↗

Documentation | Mailtrap Help Center

For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Get started quickly with our official SDKs for your favorite programming language.

Official Node.js SDK for Mailtrap

Official PHP SDK for Mailtrap

Official Ruby SDK for Mailtrap

Official .NET SDK for Mailtrap

Official Java SDK for Mailtrap

Official Python SDK for Mailtrap

Laravel integration with Mailtrap PHP SDK

Symfony integration with Mailtrap PHP SDK

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.

Get started API reference

// 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"
});

Choose your product and get up and running quickly with our step-by-step guides.

Deliver transactional emails reliably with our API or SMTP service. Get detailed analytics and ensure high deliverability.

Catch and inspect emails in a safe testing environment. Preview, analyze, and debug emails before they reach real inboxes.

Design, send, and track marketing campaigns. Manage subscribers and analyze campaign performance.

Discover the full range of features and capabilities across our email platform.

Learn how to integrate Mailtrap with your favorite tools and migrate from other services.

Connect Mailtrap with Laravel, Rails, Node.js, Python and more popular frameworks.

Configure SPF, DKIM, and DMARC records with guides for all major DNS providers.

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.

Get started with Mailtrap's free plan. No credit card required. Test emails, send up to 4000 emails/m, and explore all features.

Need a custom plan or have enterprise requirements? Our team is ready to help you find the perfect solution.

Last updated