Automate your email testing with Testing API

Cover your code with tests and validate if emails are sent. Test multiple variables at a time.

  • rails
  • php
  • python
  • logo__postman
  • logo__selenium

Email Testing API has everything you need to test your emails

  • <h3>Verify hundreds of variables, at once</h3>

    Complex workflows call for comprehensive solutions. Test any number of unique emails in a matter of seconds.

  • <h3>Inspect unmodified emails</h3>

    Raw headers are visible for each email you send. Validate each and easily catch any inconsistencies.

  • <h3>Quickly integrate with your CI</h3>

    Our API works seamlessly with any WebCI and features an extensive documentation. There’s hardly any learning curve.

  • <h3>Run automated, daily checks</h3>

    Save time by letting API handle the dull checks of your emails. Be the first to know if any issues occur.

  • <h3>Test on any environment, including production</h3>

    With features such as bcc tracking or individual email per sandbox, you can monitor live emails with ease.

  • <h3>Dig into the contents of your emails</h3>

    Verifying if emails are sent is just the first step. Check their spam score, validate the headers, HTML, and a lot more.

How devs use Testing API

  1. Integrate your app with Mailtrap SMTP and API

    Copy the credentials or grab the ready code available in the sandbox settings. Send the first email to fake SMTP server.
  2. Run a check in your CI

    Use API to validate if an email was indeed sent. Check automatically any other details – headers, attachments, links, etc.
  3. Expand your tests

    Set up recurring checks and use API to access other Testing features – spam score, HTML check, bcc tracking, and more.

Email testing toolset available with sandbox

  • HTML Checker

    Validate the HTML/CSS rules included in your emails template. Gauge the support across popular clients – on web, mobile, and desktop.

    Learn More
  • Device Previews

    See how your email renders on real devices and clients. Add a visual check to the headers, HTML, and spam score your tests already cover.

    Learn More
  • Fake SMTP

    Test email sending from your project and view each email sent in your Testing sandbox. Never send a thing to recipients’ inboxes.

    Learn More