Integrate Mailtrap 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, 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. 

  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. Click the Show credentials link to see the following credentials:
  • Host: smtp.mailtrap.io
  • Port: 25 or 465 or 587 or 2525
  • Username: your unique username for this inbox

  • Password: your unique password for this inbox

4. 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.

Still need help? Contact Us Contact Us