Email API/SMTP

Learn how to send your application emails with Mailtrap.

Migration guides:

Big-volume sender? Contact us for onboarding assistance.

Overview

Good to know

  • To send emails to your recipients, you must own a domain and add it to Mailtrap.

  • Every new domain requires a Compliance Check after DNS verification. In most of cases it takes a few minutes.

  • You can try out all features with the Demo domain we provided once you sign up.

1

Verify the sending domain you own

To add a domain you own, go to the Sending Domains tab and click Add Domain. Type your domain name and confirm with the Add button.

Add Domain form in Mailtrap with domain input field

Then, add the DNS records Mailtrap provides to your domain provider.

DNS records table showing domain verification requirements

Check our Sending Domain Setup Guide for detailed instructions on adding and verifying your domain.

2

Integrate your application via Email API or SMTP

SMTP Integration

To send emails via Mailtrap SMTP, follow the instructions in this article.

SMTP integration credentials and code samples

Email API Integration

To send emails via Mailtrap Email API, follow the steps in this article.

Email API integration credentials and code samples

What else you can do with Mailtrap Email API/SMTP

Last updated

Was this helpful?