Linger.Email
0.4.0-alpha
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
<PackageReference Include="Linger.Email" Version="0.4.0-alpha" />
<PackageVersion Include="Linger.Email" Version="0.4.0-alpha" />
<PackageReference Include="Linger.Email" />
paket add Linger.Email --version 0.4.0-alpha
#r "nuget: Linger.Email, 0.4.0-alpha"
#:package Linger.Email@0.4.0-alpha
#addin nuget:?package=Linger.Email&version=0.4.0-alpha&prerelease
#tool nuget:?package=Linger.Email&version=0.4.0-alpha&prerelease
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
- Open the
Solution Explorer. - Right-click on a project within your solution.
- Click on
Manage NuGet Packages.... - Click on the
Browsetab and search for "Linger.Email". - Click on the
Linger.Emailpackage, select the appropriate version and click Install.
Package Manager Console
PM> Install-Package Linger.Email
.NET CLI Console
> dotnet add package Linger.Email
| Product | Versions 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. |
-
.NETStandard 2.0
- Linger.Utils (>= 0.4.0-alpha)
- MailKit (>= 4.11.0)
- MimeKit (>= 4.11.0)
-
net8.0
- Linger.Utils (>= 0.4.0-alpha)
- MailKit (>= 4.11.0)
- MimeKit (>= 4.11.0)
-
net9.0
- Linger.Utils (>= 0.4.0-alpha)
- MailKit (>= 4.11.0)
- MimeKit (>= 4.11.0)
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 |