CommonNetFuncs.Email
4.0.36
See the version list below for details.
dotnet add package CommonNetFuncs.Email --version 4.0.36
NuGet\Install-Package CommonNetFuncs.Email -Version 4.0.36
<PackageReference Include="CommonNetFuncs.Email" Version="4.0.36" />
<PackageVersion Include="CommonNetFuncs.Email" Version="4.0.36" />
<PackageReference Include="CommonNetFuncs.Email" />
paket add CommonNetFuncs.Email --version 4.0.36
#r "nuget: CommonNetFuncs.Email, 4.0.36"
#:package CommonNetFuncs.Email@4.0.36
#addin nuget:?package=CommonNetFuncs.Email&version=4.0.36
#tool nuget:?package=CommonNetFuncs.Email&version=4.0.36
CommonNetFuncs.Email
This contains helper methods for sending emails in .NET applications. It includes a simple interface for sending emails as well as an implementation that can be used directly or consumed as a service.
Contents
Helper class for sending emails
Email Usage Examples
<details> <summary><h3>Usage Examples</h3></summary>
SendEmail
Sends an email with the specified parameters. Can be consumed as a service using the IEmailService interface and EmailService implementation of that service.
MailAddress fromAddress = new()
{
Name = "Nick",
Email = "NickEmail@test.com"
};
MailAddress toAddress = new()
{
Name = "Chris",
Email = "ChrisEmail@test.com"
};
MailAttachment attachment = new()
{
AttachmentName = "Important Attachment.txt",
AttachmentStream = new FileStream(@"C:\Documents\Important Attachment.txt")
}
Email.SendEmail("smtp.server.address", 25, fromAddress, toAddress, "Subject Line", "Mail Body", attachments: [attachment], zipAttachments: true); // Sends email with zipped attachment
</details>
Installation
Install via NuGet:
dotnet add package CommonNetFuncs.Email
License
This project is licensed under the MIT License - see the LICENSE file for details.
| 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
- CommonNetFuncs.Compression (>= 4.0.36)
- CommonNetFuncs.Core (>= 4.0.36)
- CommonNetFuncs.Hangfire (>= 4.0.31)
- MailKit (>= 4.16.0)
- MimeKit (>= 4.16.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 |
|---|---|---|
| 4.1.0 | 42 | 6/5/2026 |
| 4.0.53 | 107 | 5/28/2026 |
| 4.0.51 | 116 | 5/27/2026 |
| 4.0.43 | 103 | 5/14/2026 |
| 4.0.40 | 114 | 5/10/2026 |
| 4.0.39 | 105 | 5/10/2026 |
| 4.0.37 | 113 | 5/9/2026 |
| 4.0.36 | 95 | 5/8/2026 |
| 4.0.31 | 132 | 4/21/2026 |
| 4.0.29 | 104 | 4/20/2026 |
| 4.0.28 | 100 | 4/19/2026 |
| 4.0.27 | 112 | 4/15/2026 |
| 4.0.25 | 108 | 4/3/2026 |
| 4.0.24 | 121 | 3/9/2026 |
| 4.0.23 | 108 | 3/5/2026 |
| 4.0.18 | 257 | 2/23/2026 |
| 3.8.43 | 110 | 3/9/2026 |
| 3.8.42 | 110 | 3/5/2026 |
| 3.8.38 | 119 | 2/24/2026 |