Enigmatry.Entry.Email
9.1.1-preview.4
This is a prerelease version of Enigmatry.Entry.Email.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Enigmatry.Entry.Email --version 9.1.1-preview.4
NuGet\Install-Package Enigmatry.Entry.Email -Version 9.1.1-preview.4
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="Enigmatry.Entry.Email" Version="9.1.1-preview.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Enigmatry.Entry.Email" Version="9.1.1-preview.4" />
<PackageReference Include="Enigmatry.Entry.Email" />
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 Enigmatry.Entry.Email --version 9.1.1-preview.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Enigmatry.Entry.Email, 9.1.1-preview.4"
#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 Enigmatry.Entry.Email@9.1.1-preview.4
#: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=Enigmatry.Entry.Email&version=9.1.1-preview.4&prerelease
#tool nuget:?package=Enigmatry.Entry.Email&version=9.1.1-preview.4&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Email Client Library
A library that provides email functionality, supporting templating, attachments, and multiple email service providers.
Intended Usage
Use this library to send emails from your application with support for HTML templates, attachments, and queue-based processing.
Installation
Add the package to your project:
dotnet add package Enigmatry.Entry.Email
Usage Example
using System.Threading.Tasks;
using Enigmatry.Entry.Email;
public class UserService
{
private readonly IEmailClient _emailClient;
public UserService(IEmailClient emailClient)
{
_emailClient = emailClient;
}
public async Task SendWelcomeEmailAsync(string email, string username)
{
// Create an email message with recipient, subject and body
var emailMessage = new EmailMessage(
to: email,
subject: "Welcome to Our Service",
body: $"<h1>Welcome, {username}!</h1><p>Thank you for registering with our service.</p>"
);
// Send the email
await _emailClient.SendAsync(emailMessage);
}
public async Task SendInvoiceEmailAsync(string email, string invoiceNumber)
{
// Create email message
var emailMessage = new EmailMessage(
to: email,
subject: $"Invoice #{invoiceNumber}",
body: $"<p>Please find your invoice #{invoiceNumber} attached to this email.</p>"
);
// Read the PDF file
byte[] pdfData = await File.ReadAllBytesAsync($"invoices/Invoice-{invoiceNumber}.pdf");
// Add attachment
emailMessage.Attachments.Add(
new EmailMessageAttachment(
fileName: $"Invoice-{invoiceNumber}.pdf",
data: pdfData,
contentType: "application/pdf"
)
);
// Send the email
await _emailClient.SendAsync(emailMessage);
}
}
Configuration Example
{
"App": {
"Smtp": {
"Server": "smtp.example.com",
"Port": 587,
"Username": "username",
"Password": "password",
"From": "noreply@example.com",
"UsePickupDirectory": false,
"PickupDirectoryLocation": "C:\\Temp\\EmailPickup",
"CatchAllAddress": "debug@example.com"
}
}
}
Dependency Injection Example
using Enigmatry.Entry.Email;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
public class Startup
{
public void ConfigureServices(IServiceCollection services, IConfiguration configuration)
{
// Register email services
services.AddEntryEmailClient(configuration);
}
}
Product | Versions 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.
-
net9.0
- EmailValidation (>= 1.3.0)
- Enigmatry.Entry.Core (>= 9.1.1-preview.4)
- MailKit (>= 4.12.1)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.5)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.5)
- Microsoft.Extensions.Options (>= 9.0.5)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.5)
- MimeKit (>= 4.12.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 |
---|---|---|
9.1.1-preview.5 | 123 | 8/8/2025 |
9.1.1-preview.4 | 86 | 6/27/2025 |
9.1.1-preview.3 | 123 | 6/4/2025 |
9.1.0 | 392 | 6/3/2025 |
9.0.1-preview.8 | 122 | 5/26/2025 |
9.0.1-preview.7 | 209 | 5/13/2025 |
9.0.1-preview.6 | 103 | 5/9/2025 |
9.0.1-preview.5 | 131 | 5/7/2025 |
9.0.1-preview.4 | 124 | 4/30/2025 |
9.0.1-preview.2 | 132 | 4/1/2025 |
9.0.0 | 903 | 2/26/2025 |
8.1.1-preview.3 | 131 | 5/7/2025 |
8.1.1-preview.1 | 136 | 4/1/2025 |
8.1.0 | 302 | 2/19/2025 |
8.0.1-preview.4 | 85 | 2/7/2025 |
8.0.1-preview.2 | 60 | 1/15/2025 |
8.0.0 | 351 | 11/27/2024 |
3.4.6-preview.10 | 72 | 11/27/2024 |
3.4.3 | 1,228 | 10/22/2024 |
3.4.2 | 264 | 10/11/2024 |
3.4.1 | 136 | 10/9/2024 |
3.4.0 | 119 | 10/9/2024 |
3.3.2 | 171 | 8/28/2024 |
3.3.2-preview.7 | 75 | 8/27/2024 |
3.3.1 | 157 | 7/16/2024 |
3.3.1-preview.4 | 72 | 7/12/2024 |
3.3.0 | 178 | 6/20/2024 |
3.2.1-preview.4 | 74 | 6/17/2024 |
3.2.1-preview.1 | 80 | 5/23/2024 |
3.2.0 | 3,741 | 4/3/2024 |
3.1.1-preview.1 | 78 | 3/13/2024 |
3.1.0 | 175 | 3/8/2024 |
3.1.0-preview.2 | 91 | 2/19/2024 |
3.0.1-preview.2 | 89 | 2/9/2024 |
3.0.1-preview.1 | 87 | 1/24/2024 |
3.0.0 | 972 | 1/15/2024 |
3.0.0-preview.14 | 87 | 1/9/2024 |
3.0.0-preview.12 | 75 | 1/9/2024 |
3.0.0-preview.5 | 76 | 1/10/2024 |
3.0.0-preview.2 | 104 | 12/28/2023 |
3.0.0-preview | 131 | 12/20/2023 |
2.1.0 | 192 | 12/28/2023 |
2.0.1-preview.3 | 120 | 12/1/2023 |
2.0.1-preview.2 | 91 | 11/29/2023 |
2.0.1-preview.1 | 85 | 11/28/2023 |
2.0.0 | 416 | 11/8/2023 |
2.0.0-preview.3 | 101 | 10/27/2023 |
2.0.0-preview.2 | 101 | 10/27/2023 |
2.0.0-preview.1 | 91 | 10/27/2023 |
2.0.0-preview | 144 | 10/27/2023 |
1.1.500 | 175 | 10/27/2023 |
1.1.495 | 174 | 9/24/2023 |
1.1.486 | 452 | 9/13/2023 |
1.1.484 | 172 | 9/7/2023 |
1.1.482 | 161 | 9/6/2023 |
1.1.480 | 199 | 8/24/2023 |
1.1.477 | 217 | 8/2/2023 |
1.1.464 | 244 | 7/5/2023 |
1.1.447 | 198 | 5/26/2023 |
1.1.396 | 278 | 4/11/2023 |
1.1.383 | 256 | 4/3/2023 |
1.1.377 | 268 | 3/13/2023 |
1.1.376 | 263 | 3/13/2023 |
1.1.365 | 685 | 2/15/2023 |