Mailtrap cURL Integration

Mailtrap can be integrated with cURL for email sending via SMTP and API, find out how to do it.

Before we start, you’ll need to:

Send emails using cURL and Mailtrap

SMTP integration

To integrate Mailtrap via SMTP, go to the Integration tab and copy/paste either the credentials or the pre-made code snippets into your configuration.

You can get more information on SMTP integration here.

SDK integration

To integrate Mailtrap and send emails via cURL, use the configuration available among Code samples under the API section. 

Once you copy the script, make sure to insert your Mailtrap API token in the Authorization     field as Bearer     and enter your and your recipient's emails in the --mail-fromand --mail-rcpt fields.

Note: To learn more about API integration, click here.

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