Skip to content

Latest commit

 

History

History

README.md

title Mailtrap Documentation
description Complete email infrastructure for developers. Send production emails, test in sandbox, and run email campaigns - all in one platform.
icon house

Documentation

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.

:node-js: Node.jsOfficial Node.js SDK for MailtrapNode.js
:php: PHPOfficial PHP SDK for MailtrapPHP
💎 RubyOfficial Ruby SDK for MailtrapRuby
:microsoft: .NETOfficial .NET SDK for Mailtrap.NET
:java: JavaOfficial Java SDK for MailtrapJava
:python: PythonOfficial Python SDK for MailtrapPython
:laravel: LaravelLaravel integration with Mailtrap PHP SDKPHP
:symfony: SymfonySymfony integration with Mailtrap PHP SDKPHP

{% columns %} {% column %} 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 {% endcolumn %}

{% column %} {% code title="index.js" overflow="wrap" %}

// Send your first email
const { MailtrapClient } = require("mailtrap");

const client = new MailtrapClient({
  token: "YOUR_API_TOKEN"
});

await client.send({
  from: { email: "[email protected]" },
  to: [{ email: "[email protected]" }],
  subject: "Hello from Mailtrap!",
  text: "Welcome to Mailtrap Email API"
});

{% endcode %} {% endcolumn %} {% endcolumns %}

Quick start guides

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

:paper-plane: Email API/SMTPSend Production EmailsDeliver transactional emails reliably with our API or SMTP service. Get detailed analytics and ensure high deliverability.email-api-smtp.md
🐛 Email SandboxTest Before SendingCatch and inspect emails in a safe testing environment. Preview, analyze, and debug emails before they reach real inboxes.email-sandbox.md
:cart-arrow-up: Email MarketingRun Email CampaignsDesign, send, and track marketing campaigns. Manage subscribers and analyze campaign performance.email-marketing.md

Explore features

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

{% columns %} {% column width="33%" %} :paper-plane: Email API/SMTP

{% column width="33%" %} :-bug: Email Sandbox

{% column width="33%" %} :cart-arrow-up: Email Marketing

Guides & integrations

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

🔗 IntegrationsThird-party ToolsConnect Mailtrap with Laravel, Rails, Node.js, Python and more popular frameworks.Integrations
:globe: DNS SetupDomain ConfigurationConfigure SPF, DKIM, and DMARC records with guides for all major DNS providers.sending-domain.md

Ready to get started?

{% hint style="info" %} 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. {% endhint %}

:rocket-launch: Start with a Free planGet started with Mailtrap's free plan. No credit card required. Test emails, send up to 4000 emails/m, and explore all features.Sing up free
:message: Talk to SalesNeed a custom plan or have enterprise requirements? Our team is ready to help you find the perfect solution.Contact Sales