# 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
:gem: 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](https://docs.mailtrap.io/getting-started/email-api-smtp) [API reference](https://docs.mailtrap.io/developers) {% endcolumn %} {% column %} {% code title="index.js" overflow="wrap" %} ```javascript // 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" }); ``` {% 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
:bug: Email SandboxTest Before SendingCatch and inspect emails in a safe testing environment. Preview, analyze, and debug emails before they reach real inboxes.email-sandbox
:cart-arrow-up: Email MarketingRun Email CampaignsDesign, send, and track marketing campaigns. Manage subscribers and analyze campaign performance.email-marketing
## Explore features Discover the full range of features and capabilities across our email platform. {% columns %} {% column width="33%" %} :paper-plane: **Email API/SMTP** * [API Integration](https://docs.mailtrap.io/email-api-smtp/setup/api-integration) * [SMTP Integration](https://docs.mailtrap.io/email-api-smtp/setup/smtp-integration) * [Email Templates](https://docs.mailtrap.io/email-api-smtp/email-templates) * [Email Logs](https://docs.mailtrap.io/email-api-smtp/analytics/logs) * [Webhooks](https://docs.mailtrap.io/email-api-smtp/advanced/webhooks) {% endcolumn %} {% column width="33%" %} :-bug: **Email Sandbox** * [Email Template Inspector](https://docs.mailtrap.io/email-sandbox/testing/email-template) * [HTML Check](https://docs.mailtrap.io/email-sandbox/testing/email-html) * [Deliverability Tests](https://docs.mailtrap.io/email-sandbox/testing/spam-blacklist-reports) * [Sandbox API](https://docs.mailtrap.io/email-sandbox/setup/sandbox-api-integration) * [Team Collaboration](https://docs.mailtrap.io/email-sandbox/collaboration/sharing-sandboxes) {% endcolumn %} {% column width="33%" %} :cart-arrow-up: **Email Marketing** * [Campaign Management](https://docs.mailtrap.io/email-marketing/campaigns) * [Contacts Management](https://docs.mailtrap.io/email-marketing/contacts) * [Email Templates](https://docs.mailtrap.io/email-marketing/campaigns/email-templates) * [Statistics](https://docs.mailtrap.io/email-marketing/campaigns/statistics) * [Segments](https://docs.mailtrap.io/email-marketing/contacts/segments) {% endcolumn %} {% endcolumns %} ## Guides & integrations Learn how to integrate Mailtrap with your favorite tools and migrate from other services.
:link: 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
## Ready to get started? {% hint style="info" %} **New to Mailtrap?** Start with our [Email Sandbox](https://docs.mailtrap.io/getting-started/email-sandbox) to test your emails in a safe environment, then move to [Email API/SMTP](https://docs.mailtrap.io/getting-started/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
--- # Agent Instructions: Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the `ask` query parameter: ``` GET https://docs.mailtrap.io/readme.md?ask= ``` The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.