MyNet.Mail
19.3.5
dotnet add package MyNet.Mail --version 19.3.5
NuGet\Install-Package MyNet.Mail -Version 19.3.5
<PackageReference Include="MyNet.Mail" Version="19.3.5" />
<PackageVersion Include="MyNet.Mail" Version="19.3.5" />
<PackageReference Include="MyNet.Mail" />
paket add MyNet.Mail --version 19.3.5
#r "nuget: MyNet.Mail, 19.3.5"
#:package MyNet.Mail@19.3.5
#addin nuget:?package=MyNet.Mail&version=19.3.5
#tool nuget:?package=MyNet.Mail&version=19.3.5
<div align="center">
MyNet.Mail
<img src="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.3.5)
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.