Mailtrap C#, C/C++ integration
Mailtrap can be integrated with C# and C/C++ apps and projects for sending and/or testing purposes. Choose the one that suits your needs.
Email API/SMTP for C#, C/C++
SMTP integration
To integrate SMTP with your C# app, navigate to the Integrations tab, choose C#, and copy-paste the credentials or ready-made code snippets.
As C/C++ doesn’t have built-in support for SMTP sending, configure the library you’re using with the provided credentials.
Note that SMTP integration is compatible with any C# and C/C++ framework or library that sends emails via SMTP.
Read more about Email API/SMTP 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 C# and C/C++ framework or library that supports HTTP requests. For more details, refer to the API documentation.
Read more about Email API/SMTP API integration here.
Email Testing for C#, C/C++
SMTP integration
Within the Email Testing menu, navigate to the Inbox and find your SMTP credentials and code snippet for C#. Then, simply copy/paste them into your C# project.
And for C/C++, use the provided SMTP credentials with any library that supports SMTP.
You can integrate Email Testing with any C# and C/C++ 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 C# and C/C++ framework or library that supports HTTP requests.
For more details, refer to the API docs.