MailSlurp is a powerful, free API for creating real email addresses in C#, F#, and DotNET. You can send and receive email addresses from tests and applications and manage your accounts using a webapp.
- Install NuGet Package
- Example project
- C# SMTP mail example
- App login
- Read emails in code
CSharp email examples
First add the .NET email package from Nuget:
dotnet add package mailslurp dotnet restore
Then create a configuration with your api key. Next create an email account using the inbox controller.
using mailslurp.Api; using mailslurp.Client; using mailslurp.Model; var config = new Configuration(); config.ApiKey.Add("x-api-key", "your_api_key_here"); // now create an email address var apiInstance = new InboxControllerApi(config); var inbox = apiInstance.CreateInbox(); Assert.NotNull(inbox); Assert.Contains("@mailslurp.com", inbox.EmailAddress);
Receive email in DotNET Core using C# and MailSlurp
Golang Email Library for sending and receiving emails in Go over SMTP or HTTP/S.
PHP email API for creating inboxes, sending email, and receiving attachments in code and tests.
Ruby Mailer SDK - send and receive emails in Rails, Rspec and more using MailSlurp's official email Gem
Receive email and attachments with Rails, Rspec, and Ruby without SMTP using MailSlurp Ruby Gem.
The Most Advanced Guide on Azure Email Sending.
Fix .NET installation on Linux for missing dotnet dependencies.
Create real throw-away email addresses for testing and development in .NET core. Follow this guide to get started.
Create cross platform build scripts for DotNET Core in a way similar to Makefiles.
DotNet starter project MVC generation using the command line interface.
Alternatives to Mailinator for test email accounts. Create real email addresses using MailSlurp
Use Send-MailMessage in Windows Powershell to send emails using an SMTP server or MailSlurp's free email API.
How to test .NET authentication and sign-up using real email accounts with MailSlurp and SpecFlow.
Send and receive email in DotNET Nunit tests using Selenium and MailSlurp.
SMTP mailserver testing and usage in CSharp using
Create a custom SMTP client and access MailSlurp inboxes from CSharp/DotNET.
Fetch and read emails with GraphQL inboxes using MailSlurp email API.
Send email in Visual basic
How to use CSharp SMTP client to send email with MailSlurp mail server