Soenneker.Extensions.Messages.Email 4.0.585

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

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Extensions.Messages.Email

Extension methods for converting and preparing EmailMessage objects for templates, transports, and other email-processing stages.

Installation

dotnet add package Soenneker.Extensions.Messages.Email

Usage

using Soenneker.Extensions.Messages.Email;

EmailMessage message = CreateEmailMessage();
Dictionary<string, string> tokens = message.ToTokenDictionary();

string subject = tokens["subject"];
// subject == message.Subject

Token names come from [JsonPropertyName] when present (Subject therefore becomes subject); otherwise the CLR property name is used. Values are converted with Convert.ToString, so this is a flat token dictionary—not JSON serialization. Collections and dictionaries are not expanded into individual tokens. Only readable, non-indexed public properties declared directly on EmailMessage are included; properties inherited from its base message type are excluded. A null message returns an empty dictionary.

Property metadata is cached per runtime type, making repeated conversion inexpensive.

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

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
4.0.600 30 9/8/2026
4.0.599 57 9/7/2026
4.0.598 56 9/7/2026
4.0.597 127 9/5/2026
4.0.596 63 9/4/2026
4.0.595 48 9/4/2026
4.0.594 208 9/1/2026
4.0.593 101 8/31/2026
4.0.592 114 8/31/2026
4.0.591 141 8/31/2026
4.0.590 87 8/30/2026
4.0.589 93 8/30/2026
4.0.588 92 8/30/2026
4.0.587 82 8/30/2026
4.0.586 91 8/30/2026
4.0.585 88 8/30/2026
4.0.584 88 8/29/2026
4.0.582 101 8/29/2026
4.0.581 89 8/26/2026
4.0.580 87 8/26/2026
Loading failed

Update dependency Soenneker.Messages.Email to 4.0.390 (#1108)