MyNet.Utilities.Mail.MailKit
15.0.0
dotnet add package MyNet.Utilities.Mail.MailKit --version 15.0.0
NuGet\Install-Package MyNet.Utilities.Mail.MailKit -Version 15.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="MyNet.Utilities.Mail.MailKit" Version="15.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MyNet.Utilities.Mail.MailKit" Version="15.0.0" />
<PackageReference Include="MyNet.Utilities.Mail.MailKit" />
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 MyNet.Utilities.Mail.MailKit --version 15.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MyNet.Utilities.Mail.MailKit, 15.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 MyNet.Utilities.Mail.MailKit@15.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=MyNet.Utilities.Mail.MailKit&version=15.0.0
#tool nuget:?package=MyNet.Utilities.Mail.MailKit&version=15.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
<div id="top"></div>
<br /> <div align="center"> <img src="../../assets/MyNetUtilities.png" width="128" alt="MyNetUtilities"> </div>
<h1 align="center">My .NET Utilities MailKit</h1>
A powerful extension library for sending emails in .NET applications using MailKit.
Installation
Install via NuGet:
dotnet add package MyNet.Utilities.Mail.MailKit
Features
- Send emails using MailKit.
- Support for multiple sender addresses and server configurations.
- Exception handling for undefined servers and empty sender addresses.
Example Usage
using MyNet.Utilities.Mail.MailKit;
// Create a mail service
var mailService = MailKitServiceFactory.Create();
// Send an email
await mailService.SendAsync(
to: "recipient@example.com",
subject: "Hello from MyNet",
body: "This is a test email."
);
Related Packages
| Package | Description | NuGet |
|---|---|---|
| MyNet.Utilities | Core utilities for .NET development. | NuGet |
| MyNet.Utilities.Generator.Extensions | Generate random data for .NET apps. | NuGet |
| MyNet.Utilities.Geography.Extensions | Access detailed geography info. | NuGet |
| MyNet.Utilities.Localization.Extensions | Localization resources and helpers. | NuGet |
| MyNet.Utilities.Logging.NLog | Logging integration with NLog. | NuGet |
License
Copyright © Stéphane ANDRE.
Distributed under the MIT License. See LICENSE for details.
| 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 is compatible. 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.
-
net10.0
- MailKit (>= 4.14.1)
- MyNet.Utilities (>= 15.0.0)
-
net8.0
- MailKit (>= 4.14.1)
- MyNet.Utilities (>= 15.0.0)
-
net9.0
- MailKit (>= 4.14.1)
- MyNet.Utilities (>= 15.0.0)
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 |
|---|---|---|
| 15.0.0 | 81 | 12/22/2025 |
| 14.4.0 | 81 | 12/21/2025 |
| 14.3.0 | 196 | 12/7/2025 |
| 14.2.0 | 172 | 11/26/2025 |
| 14.1.0 | 331 | 11/21/2025 |
| 14.0.4 | 213 | 11/14/2025 |
| 14.0.3 | 224 | 11/14/2025 |
| 14.0.2 | 234 | 11/14/2025 |
| 14.0.1 | 264 | 11/13/2025 |
| 14.0.0 | 264 | 11/13/2025 |
| 13.1.0 | 202 | 11/6/2025 |
| 13.0.0 | 128 | 10/17/2025 |
| 8.0.43 | 180 | 9/8/2025 |
| 8.0.22 | 149 | 9/7/2025 |
| 8.0.15 | 129 | 9/6/2025 |
| 8.0.0 | 191 | 5/26/2025 |
| 7.0.0 | 175 | 4/4/2025 |
| 6.0.1 | 140 | 1/15/2025 |
| 6.0.0 | 160 | 12/21/2024 |
| 5.0.0 | 167 | 9/2/2024 |
| 5.0.0-pre | 138 | 8/30/2024 |
| 1.1.0 | 191 | 6/21/2024 |
| 1.0.1 | 190 | 4/27/2024 |