Integrate Mailtrap Email Testing as an SMTP server

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 of adding it as an SMTP server.

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. 

Copy SMTP credentials

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

  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