Mailtrap .NET integration
Mailtrap can be integrated with .NET apps and projects for sending and/or testing purposes. Choose the one that suits your needs.
Email API/SMTP for .NET
SMTP integration
To integrate SMTP with your .NET app, navigate to the Integrations tab, choose C#, and copy-paste the credentials or ready-made code snippets.
Note that SMTP integration is compatible with any .NET programming language 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 .NET programming language 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 .NET
SMTP integration
Within the Email Testing menu, navigate to the Inbox and find your SMTP credentials. Then, simply copy/paste them into your .NET project.
If you’re using C#, copy and paste the ready-made code snippet directly into your .NET project.
You can integrate Email Testing with any .NET programming language 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 a .NET programming language or library that supports HTTP requests.
If you're using C#, copy/paste a sample code snippet under Code Samples.
For more details, refer to the API docs.