Mailtrap Go integration

Mailtrap can be integrated with Go apps and projects for sending and/or testing purposes. Choose the one that suits your needs.

Email API/SMTP for Go

SMTP integration

To integrate SMTP with your Go app, navigate to the Integrations tab and copy-paste the credentials.

Note that SMTP integration is compatible with any Go framework or library that sends emails via SMTP.

Read more about SMTP integration here.

RESTful API integration

To integrate Mailtrap using RESTful API, use the configuration available among Code samples under the API section.

API integration can be used with any Go framework or library that supports HTTP requests. For more details, refer to the API documentation.

Read more about API integration here.

Email Testing for Go

SMTP integration

Within the Email Testing menu, navigate to the Sandbox and find your SMTP credentials. Then, simply copy-paste them into your Go project.

You can integrate Email Testing with any Go framework or library that sends emails via SMTP.

Read more about Email Testing SMTP integration here

RESTful API integration

To use Email Testing API, simply copy-paste the API endpoint and API token into the configuration file of any Go framework that supports HTTP requests.

For more details, refer to the API docs.

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