How it works
Add Mailtrap’s powerful email sending and testing to the entire .NET ecosystem. By configuring any standard .NET email library with our SMTP credentials, you can add a robust platform to your application in minutes.

Configure
Integrate Mailtrap with any C# application by simply using our SMTP credentials. Configure your preferred .NET mail library, like MailKit or SmtpClient, to instantly gain a secure sandbox for debugging development emails. When you’re ready to send, use the same integration to ensure high deliverability and track performance with detailed analytics.
Check the official .NET SDK documentation for detailed examples and advanced applications.
Use cases
- Transactional email sending
- Batch email sending
- Template management
- Contact management
- Sandbox testing
- Account management
- Async/await pattern support
- Compatible with .NET 6+, .NET Core, and .NET Framework