Raycynix.Extensions.Email
3.1.1
dotnet add package Raycynix.Extensions.Email --version 3.1.1
NuGet\Install-Package Raycynix.Extensions.Email -Version 3.1.1
<PackageReference Include="Raycynix.Extensions.Email" Version="3.1.1" />
<PackageVersion Include="Raycynix.Extensions.Email" Version="3.1.1" />
<PackageReference Include="Raycynix.Extensions.Email" />
paket add Raycynix.Extensions.Email --version 3.1.1
#r "nuget: Raycynix.Extensions.Email, 3.1.1"
#:package Raycynix.Extensions.Email@3.1.1
#addin nuget:?package=Raycynix.Extensions.Email&version=3.1.1
#tool nuget:?package=Raycynix.Extensions.Email&version=3.1.1
Raycynix.Extensions.Email
This package follows the shared version in Directory.Build.props. See CHANGELOG.md for release history.
Shared email registration infrastructure for Raycynix applications.
What It Provides
AddRaycynixEmail(...)EmailOptions- email provider resolution
- email builder support for provider packages
- optional Microsoft
ILogger<T>diagnostics for provider resolution
This package registers the shared email infrastructure. A provider package, such as Raycynix.Extensions.Email.Smtp, must be added to provide an IEmailSender implementation.
EmailOptions is bound from the conventional EmailOptions section and validated during application startup.
Usage
builder.Services
.AddRaycynixEmail(builder.Configuration, email =>
{
email.DefaultFromAddress = "no-reply@example.com";
email.DefaultFromDisplayName = "Example App";
})
.AddSmtp();
Configuration
{
"EmailOptions": {
"DefaultFromAddress": "no-reply@example.com",
"DefaultFromDisplayName": "Example App",
"DefaultReplyToAddress": "support@example.com",
"DefaultReplyToDisplayName": "Support"
}
}
Migrating From 2.x
- Replace
EmailConfigurationwithEmailOptions. - Replace the
Raycynix.Extensions.Email.Configurationsnamespace withRaycynix.Extensions.Email.Options. - Rename the configuration section from
EmailConfigurationtoEmailOptions.
Logging
The package uses optional Microsoft ILogger<T> diagnostics when logging is registered in the application. No Raycynix logging provider is required.
Provider resolution diagnostics include registration counts and provider selection flow only. Email addresses, subjects, bodies, and credentials are not logged.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.13)
- Raycynix.Extensions.Configuration (>= 3.1.1)
- Raycynix.Extensions.Configuration.Abstractions (>= 3.1.1)
- Raycynix.Extensions.Email.Abstractions (>= 3.1.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Raycynix.Extensions.Email:
| Package | Downloads |
|---|---|
|
Raycynix.Extensions.Email.Smtp
MailKit-based SMTP provider for Raycynix email with typed transport options, credential and TLS validation, MIME composition, attachments, and asynchronous delivery. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Raycynix.Extensions 3.1.1. All packages inherit the shared version from Directory.Build.props. See https://github.com/raycynix/Raycynix.Extensions/blob/HEAD/src/Raycynix.Extensions.Email/CHANGELOG.md for package-specific changes and https://github.com/raycynix/Raycynix.Extensions/blob/HEAD/CHANGELOG.md for the release overview.