Skip to main content

MailSlurp C# Client .NET Standard 2.x

Create real email addresses on demand. Send and receive emails and attachments from code and tests using CSharp (C# NET Standard 2.1).

MailSlurp is an email API service that lets you create real email addresses in code. You can then send and receive emails and attachments in C# applications and tests.

Tutorials

Get started

This section describes how to get up and running with the CSharp client. The client targets NET Standard 2.1 and greater. If you need a different target see the .NET Standard targets below or consider calling the REST API.

See the method documentation for a list of all functions

Install NuGet Package

MailSlurp's CSharp library is hosted on NuGet.

With .NET CLI

dotnet add package mailslurp_netstandard_2x
dotnet restore