How to integrate Email Testing with your application

To start using Mailtrap, you should assign it as an SMTP server for your project. You can do this with a ready to use configuration code. Or you can use SMTP credentials for your email client / MTA.

To start using Mailtrap Email Testing, you should integrate it with your app. There are two ways to do it:

#1- Select your integration 

Follow these steps:

  1. Sign up by creating a free account, or sign in if you already have one. 
  2. There is already an empty inbox created for you. It is the My Inbox in the My Inboxes project. It is opened by default when you enter Mailtrap for the first time. 
  3. Choose your technology from the list of integrations, copy the configuration, and paste it to your project. 
  4. Run your email sending code. 

#2 - Copy SMTP credentials

You can also use SMTP credentials and we assume you're already signed in. 

Important Note: These are the credentials for the "fake" SMTP used only in sandbox. Please don't confuse this with Mailtrap Email Sending SMTP credentials which are for production emails.

  1. Click the Show credentials link to see the following credentials: 


    Port: 25 or 465 or 587 or 2525 

    Username: unique to your inbox

    Password: unique to your inbox 

  2. Paste them to your project/email client/MTA (any option that supports SMTP integration) and run the email sending code.

Learn how exactly Mailtrap can help you streamline email testing processes from our case study with The Software House.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us