Linger.Email 0.4.0-alpha

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

Linger.Email

A C# email helper library that provides simplified email operations and SMTP support for .NET Framework 4.6.2+ and .NET Standard 2.0+.

Introduction

Linger.Email simplifies email operations in .NET applications by providing an easy-to-use interface for sending emails, managing attachments, and handling SMTP configurations.

Features

Email Operations

  • Simple email sending with fluent API
  • HTML and plain text support
  • File attachment handling
  • Email template support
  • Async operations

SMTP Configuration

  • Multiple SMTP server support
  • SSL/TLS encryption
  • Custom port configuration
  • Authentication options

Usage Examples

Basic Email Sending

// Simple text email 
var email = new EmailMessage 
{ 
    From = "sender@example.com", 
    To = new[] { "recipient@example.com" }, 
    Subject = "Hello", 
    Body = "This is a test email" 
};
await emailService.SendAsync(email);

// Multiple recipients 
var groupEmail = new EmailMessage 
{ 
    From = "sender@example.com", 
    To = new[] { "recipient1@example.com", "recipient2@example.com" }, 
    Cc = new[] { "manager@example.com" }, 
    Bcc = new[] { "archive@example.com" }, 
    Subject = "Team Meeting", 
    Body = "Let's meet tomorrow at 2 PM" 
};
await emailService.SendAsync(groupEmail);

HTML Email with Attachments

// HTML email with single attachment 
var reportEmail = new EmailMessage 
{ 
    From = "reports@company.com", 
    To = new[] { "manager@company.com" },
    Subject = "Monthly Report", 
    IsHtml = true,
    Body = @" Monthly Sales Report Please find the attached report for this month.  Total Sales: $50,000 Growth: 15% " 
};
reportEmail.Attachments.Add(new EmailAttachment("monthly-report.pdf"));
await emailService.SendAsync(reportEmail);

// Multiple attachments with custom names 
var documentsEmail = new EmailMessage
{ 
    From = "documents@company.com", 
    To = new[] { "client@example.com" }, 
    Subject = "Project Documentation", 
    IsHtml = true, 
    Body = "Please find attached the project documents.", 
    Attachments = new List { new EmailAttachment("specs.pdf", "Project-Specifications.pdf"), new EmailAttachment("timeline.xlsx", "Project-Timeline.xlsx") }
};
await emailService.SendAsync(documentsEmail);

Install

From Visual Studio

  1. Open the Solution Explorer.
  2. Right-click on a project within your solution.
  3. Click on Manage NuGet Packages....
  4. Click on the Browse tab and search for "Linger.Email".
  5. Click on the Linger.Email package, select the appropriate version and click Install.

Package Manager Console

PM> Install-Package Linger.Email

.NET CLI Console

> dotnet add package Linger.Email
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Linger.Email:

Package Downloads
Linger.Email.AspNetCore

ASP.NET Core integration for the Linger.Email library. Provides dependency injection extensions and configuration integration for email services. Simplifies email sending in modern ASP.NET Core applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 279 11/12/2025
1.0.0-preview2 177 11/6/2025
1.0.0-preview1 173 11/5/2025
0.9.9 169 10/16/2025
0.9.8 171 10/14/2025
0.9.7-preview 163 10/13/2025
0.9.6-preview 143 10/12/2025
0.9.5 148 9/28/2025
0.9.4-preview 167 9/25/2025
0.9.3-preview 186 9/22/2025
0.9.1-preview 293 9/16/2025
0.9.0-preview 120 9/12/2025
0.8.5-preview 190 8/31/2025
0.8.4-preview 309 8/25/2025
0.8.3-preview 169 8/20/2025
0.8.2-preview 209 8/4/2025
0.8.1-preview 137 7/30/2025
0.8.0-preview 575 7/22/2025
0.7.2 190 6/3/2025
0.7.1 191 5/21/2025
0.7.0 190 5/19/2025
0.6.0-alpha 202 4/28/2025
0.5.0-alpha 205 4/10/2025
0.4.0-alpha 198 4/1/2025
0.3.3-alpha 198 3/19/2025
0.3.2-alpha 199 3/17/2025
0.3.1-alpha 182 3/16/2025
0.3.0-alpha 252 3/6/2025
0.2.0-alpha 133 2/9/2025
0.1.2-alpha 143 12/17/2024
0.1.1-alpha 130 12/17/2024
0.1.0-alpha 133 12/6/2024
0.0.4-alpha 136 12/6/2024
0.0.3-alpha 140 11/27/2024
0.0.2-alpha 130 10/3/2024