![]() |
VOOZH | about |
dotnet add package Enigmatry.Entry.Email --version 10.2.3
NuGet\Install-Package Enigmatry.Entry.Email -Version 10.2.3
<PackageReference Include="Enigmatry.Entry.Email" Version="10.2.3" />
<PackageVersion Include="Enigmatry.Entry.Email" Version="10.2.3" />Directory.Packages.props
<PackageReference Include="Enigmatry.Entry.Email" />Project file
paket add Enigmatry.Entry.Email --version 10.2.3
#r "nuget: Enigmatry.Entry.Email, 10.2.3"
#:package Enigmatry.Entry.Email@10.2.3
#addin nuget:?package=Enigmatry.Entry.Email&version=10.2.3Install as a Cake Addin
#tool nuget:?package=Enigmatry.Entry.Email&version=10.2.3Install as a Cake Tool
A library that provides email functionality, supporting templating, attachments, and multiple email service providers.
Use this library to send emails from your application with support for HTML templates, attachments, and queue-based processing.
Add the package to your project:
dotnet add package Enigmatry.Entry.Email
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);
}
}
{
"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"
}
}
}
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 | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.2.3 | 131 | 6/1/2026 |
| 10.2.3-preview.4 | 59 | 6/1/2026 |
| 10.2.2 | 412 | 4/27/2026 |
| 10.2.1-preview.1 | 60 | 4/27/2026 |
| 10.1.0 | 158 | 4/16/2026 |
| 10.0.1 | 182 | 5/19/2026 |
| 10.0.1-preview.2 | 57 | 4/16/2026 |
| 10.0.0 | 131 | 4/2/2026 |
| 9.6.0 | 356 | 3/18/2026 |
| 9.5.0 | 1,294 | 1/26/2026 |
| 9.4.0 | 1,766 | 12/22/2025 |
| 9.3.1-preview.3 | 259 | 12/18/2025 |
| 9.3.1-preview.1 | 509 | 11/25/2025 |
| 9.3.0 | 354 | 11/10/2025 |
| 9.2.0 | 1,531 | 9/24/2025 |
| 9.1.1-preview.5 | 239 | 8/8/2025 |
| 9.1.1-preview.4 | 148 | 6/27/2025 |
| 8.3.1-preview.1 | 209 | 12/24/2025 |
| 8.3.0 | 226 | 12/23/2025 |
| 8.2.0 | 288 | 9/24/2025 |