CommonNetFuncs.Email 3.6.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package CommonNetFuncs.Email --version 3.6.1
                    
NuGet\Install-Package CommonNetFuncs.Email -Version 3.6.1
                    
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="CommonNetFuncs.Email" Version="3.6.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommonNetFuncs.Email" Version="3.6.1" />
                    
Directory.Packages.props
<PackageReference Include="CommonNetFuncs.Email" />
                    
Project file
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 CommonNetFuncs.Email --version 3.6.1
                    
#r "nuget: CommonNetFuncs.Email, 3.6.1"
                    
#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 CommonNetFuncs.Email@3.6.1
                    
#: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=CommonNetFuncs.Email&version=3.6.1
                    
Install as a Cake Addin
#tool nuget:?package=CommonNetFuncs.Email&version=3.6.1
                    
Install as a Cake Tool

CommonNetFuncs.Email

nuget

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


Email

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>

Product Compatible and additional computed target framework versions.
.NET 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 was computed.  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.

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
3.6.26 92 8/14/2025
3.6.25 92 8/13/2025
3.6.24 91 8/12/2025
3.6.19 88 7/28/2025
3.6.18 317 7/25/2025
3.6.6 432 7/21/2025
3.6.1 140 7/14/2025
3.6.0 145 7/14/2025
3.5.3 136 7/10/2025
3.5.0 146 7/7/2025
3.4.23 140 6/26/2025
3.4.21 137 6/26/2025
3.4.20 140 6/25/2025
3.4.18 147 6/23/2025
3.4.8 289 6/11/2025
3.4.5 246 6/9/2025
3.4.2 139 6/2/2025
3.4.1 80 5/30/2025
3.4.0 136 5/30/2025
3.3.14 151 5/21/2025
3.3.11 146 5/19/2025
3.3.10 233 5/13/2025
3.3.8 229 5/13/2025
3.3.2 149 4/30/2025
3.3.0 156 4/29/2025
3.2.22 191 3/12/2025
3.2.21 195 3/11/2025
3.2.15 136 2/24/2025
3.2.13 115 2/13/2025
3.2.9 121 2/4/2025
3.2.5 101 1/27/2025
3.2.0 114 12/19/2024
3.1.1 125 12/10/2024
3.1.0 152 12/6/2024
3.0.0 114 12/3/2024
2.1.3 111 12/3/2024
2.1.0 114 12/2/2024
2.0.5 125 11/26/2024
2.0.2 132 11/18/2024
2.0.1 114 11/15/2024
2.0.0 111 11/14/2024
1.0.47 111 11/14/2024
1.0.42 139 11/12/2024
1.0.40 124 11/12/2024
1.0.37 127 11/4/2024
1.0.31 124 10/31/2024
1.0.28 126 10/25/2024
1.0.26 175 10/18/2024
1.0.25 115 10/17/2024
1.0.24 107 10/17/2024
1.0.20 124 10/11/2024
1.0.19 123 10/3/2024
1.0.18 153 9/30/2024
1.0.17 130 9/27/2024
1.0.16 125 9/27/2024
1.0.14 122 9/23/2024
1.0.13 140 9/18/2024
1.0.12 129 9/18/2024
1.0.11 118 9/18/2024
1.0.10 149 9/11/2024
1.0.9 151 9/11/2024
1.0.8 146 9/11/2024
1.0.7 147 9/11/2024
1.0.1 148 9/4/2024
1.0.0 122 9/2/2024