SMTP Integration

Learn how to integrate your application via SMTP.

1

Go to the Sending Domains tab and choose the domain you want to send emails from. Remember that you'll be able to start sending emails once the domain is verified.

2

Navigate to the Integrations tab for your selected domain.

3

Click the Integrate button under Transactional Stream or Bulk Stream.

Transactional Stream is used to send automated, non-promotional application emails that are triggered by the user's specific action.

Bulk Stream is used to send a single marketing campaign to a large group of recipients in bulk.

4

Toggle the switch to SMTP and copy credentials, such as Host, Port, Username, and Password and paste them into your project, app, email-sending service, or any platform that supports SMTP.

Transactional Stream SMTP credentials showing highlighted credentials section with Host, Port, Username, Password, Auth, and STARTTLS fields
Transactional Stream SMTP credentials
Bulk Stream SMTP credentials showing highlighted credentials section with Host, Port, Username, Password, Auth, and STARTTLS fields
Bulk Stream SMTP credentials

Alternatively, choose the programming language or framework from the menu under Code Samples and copy the sample configuration containing your credentials.

Transactional Stream integration showing highlighted Code samples section with cURL example and programming language options
Transactional Stream code samples
Bulk Stream integration showing highlighted Code samples section with cURL example and programming language options
Bulk Stream code samples
5

Complete your email-sending script and run it. If you did everything correctly, you should find the sent email in the inbox of the email address you indicated in the script. The email will also appear in Email Logs in Mailtrap.

Remember that each domain has different SMTP credentials that you can always access by clicking on the desired domain and going to the Integrations tab.

You can also create additional API tokens (or SMTP passwords) by going to SettingsAPI Tokens and clicking Add Token.

Learn more about API Tokens

If you need any help with SMTP integration, please, contact our support team at [email protected].

Last updated

Was this helpful?