Raycynix.Extensions.Email 3.1.0

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

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 EmailConfiguration with EmailOptions.
  • Replace the Raycynix.Extensions.Email.Configurations namespace with Raycynix.Extensions.Email.Options.
  • Rename the configuration section from EmailConfiguration to EmailOptions.

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 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. 
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 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.

Version Downloads Last Updated
3.1.1 221 10/15/2026
3.1.0 127 9/29/2026
3.0.1 136 9/16/2026
3.0.0 175 8/10/2026
2.2.0 274 6/23/2026 2.2.0 is deprecated because it is no longer maintained.
2.0.0 216 6/18/2026 2.0.0 is deprecated because it is no longer maintained.

Raycynix.Extensions 3.1.0. 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.