SMTP API

High deliverability rates by default.
SDKs for all major programming languages.
In-depth deliverability monitoring.

  • rails
  • java
  • net
  • python
  • php
  • node

Why send emails with Mailtrap SMTP API

  • Ready-to-use integrations

    Use our code snippets for Python, PHP, Node.js, and other major programming languages to easily integrate Mailtrap with your app, saving both your effort, and time.

  • In-depth analytics

    Actionable analytics with helicopter view dashboard, drill-down reports, and email logs to control how your email infrastructure performs.

  • Automatic email authentication

    Mailtrap provides and automatically validates all the necessary DNS records (SPF, DKIM, DMARC). DKIM keys are rotated monthly.

  • Email templates

    Reuse, upload, or create designs from scratch and then send and test your email templates with our API.

  • Bulk Email Sending

    RESTful API and SMTP for mass email sending. Separate stream, easy to scale, and monitor email delivery.

  • Up to 30 days of email logs

    Check the extended history of your emails and preview email content after it was sent in plain text or in source HTML.

Start sending with Mailtrap SMTP API

  1. Create a free account and verify sending domain

    Sign up for a Mailtrap account, navigate to Sending Domains, add your domain, get DNS records, and verify your domain.
  2. Integrate with your application

    Under Integrations, choose your preferred stream, select API, and use the provided credentials to integrate with your app.
  3. Start sending emails

    Start sending transactional messages and reach recipients’ inboxes just in time with ready-made code samples.

Get More Out of Mailtrap

  • Spam Checker

    Use Mailtrap built-in spam score checker to identify the level of spam metrics, and avoid spam filters before sending.

    Read More
  • Email Testing

    Capture SMTP traffic from staging and dev environments. Analyze email content for spam score and validate HTML/CSS.

    Read More
  • SMTP Service

    Send your application emails. Multiple languages for quick and easy integration.

    Read More