jcamp.FluentEmail.Mailgun
4.0.0
Prefix Reserved
dotnet add package jcamp.FluentEmail.Mailgun --version 4.0.0
NuGet\Install-Package jcamp.FluentEmail.Mailgun -Version 4.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="jcamp.FluentEmail.Mailgun" Version="4.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="jcamp.FluentEmail.Mailgun" Version="4.0.0" />
<PackageReference Include="jcamp.FluentEmail.Mailgun" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add jcamp.FluentEmail.Mailgun --version 4.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: jcamp.FluentEmail.Mailgun, 4.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package jcamp.FluentEmail.Mailgun@4.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=jcamp.FluentEmail.Mailgun&version=4.0.0
#tool nuget:?package=jcamp.FluentEmail.Mailgun&version=4.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

FluentEmail - All in one email sender for .NET and .NET Core
Mailgun Email Sender for FluentEmail
Send email via the MailGun REST API.
Usage
Create a new instance of your sender and add it as the default Fluent Email sender.
var sender = new MailgunSender(
"sandboxcf5f41bbf2f84f15a386c60e253b5fe9.mailgun.org", // Mailgun Domain
"key-8d32c046d7f14ada8d5ba8253e3e30de" // Mailgun API Key
);
Email.DefaultSender = sender;
/*
You can optionally set the sender per instance like so:
email.Sender = new MailgunSender(...);
*/
Send the email in the usual Fluent Email way.
var email = Email
.From(fromEmail)
.To(toEmail)
.Subject(subject)
.Body(body);
var response = await email.SendAsync();
Further Information
Don't forget you can use Razor templating using the FluentEmail.Razor package as well.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- jcamp.FluentEmail.Core (>= 4.0.0)
- Newtonsoft.Json (>= 13.0.4)
-
net9.0
- jcamp.FluentEmail.Core (>= 4.0.0)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.0 | 1,521 | 10/26/2025 |
| 3.8.0 | 1,640 | 9/9/2024 |
| 3.7.0 | 3,727 | 11/29/2023 |
| 3.6.1 | 571 | 11/26/2023 |
| 3.6.0 | 563 | 11/23/2023 |
| 3.5.1 | 558 | 11/21/2023 |
| 3.5.0 | 554 | 11/21/2023 |
| 3.4.0 | 533 | 11/20/2023 |
| 3.3.1 | 738 | 11/20/2023 |
| 3.3.0 | 560 | 11/19/2023 |
| 3.2.0 | 1,574 | 2/5/2023 |
| 3.1.0 | 797 | 1/30/2023 |
| 3.0.3.1 | 777 | 1/30/2023 |