Soenneker.Enums.Email.Format 11.0.135

Prefix Reserved
dotnet add package Soenneker.Enums.Email.Format --version 11.0.135
                    
NuGet\Install-Package Soenneker.Enums.Email.Format -Version 11.0.135
                    
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.Enums.Email.Format" Version="11.0.135" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Enums.Email.Format" Version="11.0.135" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Enums.Email.Format" />
                    
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.Enums.Email.Format --version 11.0.135
                    
#r "nuget: Soenneker.Enums.Email.Format, 11.0.135"
                    
#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.Enums.Email.Format@11.0.135
                    
#: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.Enums.Email.Format&version=11.0.135
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Enums.Email.Format&version=11.0.135
                    
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

Soenneker.Enums.Email.Format

A string-backed enum-value type for marking an email body as plain text or HTML.

Install

dotnet add package Soenneker.Enums.Email.Format

Usage

using Soenneker.Enums.Email.Format;

EmailFormat format = EmailFormat.Html;
string wireValue = format.Value; // "Html"

if (EmailFormat.TryFromValue(input, out EmailFormat? parsed))
{
    // parsed is Plaintext or Html
}

Available values:

  • Plaintext — unformatted text content
  • Html — HTML-formatted content

System.Text.Json serializes the type as its string value and restores recognized values to the shared static instances. FromValue throws for unknown input; use TryFromValue at request and provider boundaries. FromName and TryFromName are also generated.

This type labels the body format; it does not convert between formats or set a MIME content type by itself. The mail transport must map it to the correct body representation. When producing HTML, encode or sanitize untrusted values before interpolation; choosing Html does not make content safe.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Soenneker.Enums.Email.Format:

Package Downloads
Soenneker.Messages.Email

A Service Bus message for emails

Soenneker.Dtos.Email

A DTO type for email encapsulation

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.135 66 11/14/2026
11.0.134 546 11/11/2026
11.0.133 102 11/11/2026
11.0.132 1,529 11/2/2026
11.0.131 1,094 10/26/2026
11.0.130 467 10/26/2026
11.0.129 236 10/26/2026
4.0.128 1,468 10/15/2026
4.0.127 154 10/14/2026
4.0.126 263 10/14/2026
4.0.125 96 10/14/2026
4.0.124 203 10/14/2026
4.0.123 105 10/14/2026
4.0.119 401 10/13/2026
4.0.118 103 10/12/2026
4.0.116 457 10/12/2026
4.0.115 359 10/11/2026
4.0.114 703 10/11/2026
4.0.113 2,103 9/30/2026
4.0.112 1,420 9/25/2026
Loading failed

Update dependency Soenneker.Gen.EnumValues to 11.0.67 (#757)