| 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 |
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.
| :node-js: Node.js | Official Node.js SDK for Mailtrap | Node.js | |
| :php: PHP | Official PHP SDK for Mailtrap | PHP | |
| 💎 Ruby | Official Ruby SDK for Mailtrap | Ruby | |
| :microsoft: .NET | Official .NET SDK for Mailtrap | .NET | |
| :java: Java | Official Java SDK for Mailtrap | Java | |
| :python: Python | Official Python SDK for Mailtrap | Python | |
| :laravel: Laravel | Laravel integration with Mailtrap PHP SDK | PHP | |
| :symfony: Symfony | Symfony integration with Mailtrap PHP SDK | PHP |
{% 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 %}
Choose your product and get up and running quickly with our step-by-step guides.
| :paper-plane: Email API/SMTP | Send Production Emails | Deliver transactional emails reliably with our API or SMTP service. Get detailed analytics and ensure high deliverability. | email-api-smtp.md | |
| 🐛 Email Sandbox | Test Before Sending | Catch 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 Marketing | Run Email Campaigns | Design, send, and track marketing campaigns. Manage subscribers and analyze campaign performance. | email-marketing.md |
Discover the full range of features and capabilities across our email platform.
{% columns %} {% column width="33%" %} :paper-plane: Email API/SMTP
- API Integration
- SMTP Integration
- Email Templates
- Email Logs
- Webhooks {% endcolumn %}
{% column width="33%" %} :-bug: Email Sandbox
- Email Template Inspector
- HTML Check
- Deliverability Tests
- Sandbox API
- Team Collaboration {% endcolumn %}
{% column width="33%" %} :cart-arrow-up: Email Marketing
- Campaign Management
- Contacts Management
- Email Templates
- Statistics
- Segments {% endcolumn %} {% endcolumns %}
Learn how to integrate Mailtrap with your favorite tools and migrate from other services.
| 🔗 Integrations | Third-party Tools | Connect Mailtrap with Laravel, Rails, Node.js, Python and more popular frameworks. | Integrations |
| :globe: DNS Setup | Domain Configuration | Configure SPF, DKIM, and DMARC records with guides for all major DNS providers. | sending-domain.md |
{% 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 plan | Get 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 Sales | Need a custom plan or have enterprise requirements? Our team is ready to help you find the perfect solution. | Contact Sales |