CommonNetFuncs.Email 3.8.20

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

CommonNetFuncs.Email

License Build NuGet Version 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
4.0.6 88 1/2/2026
4.0.3 170 12/22/2025
4.0.2 697 12/2/2025
4.0.1 179 11/27/2025
4.0.0 162 11/23/2025
3.8.28 91 1/5/2026
3.8.20 576 12/1/2025
3.8.18 409 11/20/2025
3.8.16 401 11/17/2025
3.8.13 300 11/10/2025
3.8.6 188 10/21/2025
3.8.5 184 10/13/2025
3.8.4 189 10/9/2025
3.7.26 185 9/30/2025
3.7.23 194 9/23/2025
3.7.17 182 9/11/2025
3.7.16 180 9/11/2025
3.7.13 181 9/8/2025
3.7.10 208 8/29/2025
3.7.8 199 8/29/2025
3.7.0 270 8/18/2025
3.6.27 172 8/18/2025
3.6.26 188 8/14/2025
3.6.25 177 8/13/2025
3.6.24 176 8/12/2025
3.6.19 159 7/28/2025
3.6.18 394 7/25/2025
3.6.6 518 7/21/2025
3.6.1 190 7/14/2025
3.6.0 211 7/14/2025
3.5.3 182 7/10/2025
3.5.0 192 7/7/2025
3.4.23 190 6/26/2025
3.4.21 190 6/26/2025
3.4.20 186 6/25/2025
3.4.18 207 6/23/2025
3.4.8 334 6/11/2025
3.4.5 295 6/9/2025
3.4.2 187 6/2/2025
3.4.1 125 5/30/2025
3.4.0 184 5/30/2025
3.3.14 206 5/21/2025
3.3.11 186 5/19/2025
3.3.10 277 5/13/2025
3.3.8 274 5/13/2025
3.3.2 189 4/30/2025
3.3.0 204 4/29/2025
3.2.22 241 3/12/2025
3.2.21 239 3/11/2025
3.2.15 182 2/24/2025
3.2.13 153 2/13/2025
3.2.9 167 2/4/2025
3.2.5 146 1/27/2025
3.2.0 150 12/19/2024
3.1.1 173 12/10/2024
3.1.0 210 12/6/2024
3.0.0 154 12/3/2024
2.1.3 149 12/3/2024
2.1.0 161 12/2/2024
2.0.5 167 11/26/2024
2.0.2 176 11/18/2024
2.0.1 162 11/15/2024
2.0.0 155 11/14/2024
1.0.47 159 11/14/2024
1.0.42 180 11/12/2024
1.0.40 166 11/12/2024
1.0.37 166 11/4/2024
1.0.31 173 10/31/2024
1.0.28 176 10/25/2024
1.0.26 213 10/18/2024
1.0.25 160 10/17/2024
1.0.24 144 10/17/2024
1.0.20 173 10/11/2024
1.0.19 167 10/3/2024
1.0.18 184 9/30/2024
1.0.17 175 9/27/2024
1.0.16 171 9/27/2024
1.0.14 165 9/23/2024
1.0.13 175 9/18/2024
1.0.12 175 9/18/2024
1.0.11 162 9/18/2024
1.0.10 194 9/11/2024
1.0.9 179 9/11/2024
1.0.8 190 9/11/2024
1.0.7 180 9/11/2024
1.0.1 193 9/4/2024
1.0.0 168 9/2/2024