MyNet.Utilities.Mail.MailKit
8.0.43
dotnet add package MyNet.Utilities.Mail.MailKit --version 8.0.43
NuGet\Install-Package MyNet.Utilities.Mail.MailKit -Version 8.0.43
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="8.0.43" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MyNet.Utilities.Mail.MailKit" Version="8.0.43" />
<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 8.0.43
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MyNet.Utilities.Mail.MailKit, 8.0.43"
#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@8.0.43
#: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=8.0.43
#tool nuget:?package=MyNet.Utilities.Mail.MailKit&version=8.0.43
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.13.0)
- MyNet.Utilities (>= 8.0.43)
-
net8.0
- MailKit (>= 4.13.0)
- MyNet.Utilities (>= 8.0.43)
-
net9.0
- MailKit (>= 4.13.0)
- MyNet.Utilities (>= 8.0.43)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.