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
<PackageReference Include="Soenneker.Enums.Email.Format" Version="11.0.135" />
<PackageVersion Include="Soenneker.Enums.Email.Format" Version="11.0.135" />
<PackageReference Include="Soenneker.Enums.Email.Format" />
paket add Soenneker.Enums.Email.Format --version 11.0.135
#r "nuget: Soenneker.Enums.Email.Format, 11.0.135"
#:package Soenneker.Enums.Email.Format@11.0.135
#addin nuget:?package=Soenneker.Enums.Email.Format&version=11.0.135
#tool nuget:?package=Soenneker.Enums.Email.Format&version=11.0.135
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 contentHtml— 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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Gen.EnumValues (>= 11.0.67)
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 |
Update dependency Soenneker.Gen.EnumValues to 11.0.67 (#757)