MyNet.Mail
19.6.0
dotnet add package MyNet.Mail --version 19.6.0
NuGet\Install-Package MyNet.Mail -Version 19.6.0
<PackageReference Include="MyNet.Mail" Version="19.6.0" />
<PackageVersion Include="MyNet.Mail" Version="19.6.0" />
<PackageReference Include="MyNet.Mail" />
paket add MyNet.Mail --version 19.6.0
#r "nuget: MyNet.Mail, 19.6.0"
#:package MyNet.Mail@19.6.0
#addin nuget:?package=MyNet.Mail&version=19.6.0
#tool nuget:?package=MyNet.Mail&version=19.6.0
<div align="center">
MyNet.Mail
<img src="https://www.nuget.org/MyNetMail.png" alt="MyNet.Mail" width="96" height="96" />
Email message and attachment models, address parsing, and SMTP service abstractions independent of a mail transport.
</div>
<div align="center">
</div>
Features
| Feature | Description |
|---|---|
| Email builder | Fluent API for recipients, subject, and body |
| Attachments | Models and address parsing |
| IMailService | Transport-independent mail abstraction |
| MailKit | Optional SMTP delivery via sibling package |
Installation
dotnet add package MyNet.Mail
Quick start
using MyNet.Mail;
var email = Email.From("sender@example.com", "Sender")
.To("recipient@example.com")
.Subject("Hello")
.Body("Plain text body", isHtml: false);
Implement or consume IMailService via MyNet.Mail.MailKit for SMTP.
Related packages
- MyNet.Mail.MailKit
- MyNet.Platform.Windows — MAPI (Windows)
Documentation
<div align="center">
<sub>
Copyright © 2016-2026 - Stéphane ANDRE. All Rights Reserved.
<br/>
Released under the MIT License.
</sub>
</div>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 11.0.0-preview.4.26230.115)
- MyNet.Primitives (>= 19.6.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MyNet.Mail:
| Package | Downloads |
|---|---|
|
MyNet.Mail.MailKit
MailKit implementation of MyNet.Mail IMailService with TLS configuration, connection reuse, and Microsoft.Extensions.DependencyInjection registration. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 19.6.0 | 60 | 6/6/2026 |
| 19.5.2 | 68 | 6/5/2026 |
| 19.5.1 | 61 | 6/5/2026 |
| 19.5.0 | 69 | 6/5/2026 |
| 19.3.6 | 68 | 6/3/2026 |
| 19.3.5 | 65 | 6/3/2026 |
| 19.3.4 | 61 | 6/3/2026 |
| 19.3.3 | 63 | 6/2/2026 |
| 19.3.2 | 63 | 6/2/2026 |
| 19.3.1 | 59 | 6/2/2026 |
| 19.3.0 | 70 | 6/1/2026 |
| 19.2.1 | 62 | 5/31/2026 |
| 19.2.0 | 63 | 5/31/2026 |
| 19.1.0 | 67 | 5/31/2026 |
| 19.0.0 | 67 | 5/29/2026 |