Sparkdo.Communication.Email.Abstractions
2.0.0-preview.2
This is a prerelease version of Sparkdo.Communication.Email.Abstractions.
dotnet add package Sparkdo.Communication.Email.Abstractions --version 2.0.0-preview.2
NuGet\Install-Package Sparkdo.Communication.Email.Abstractions -Version 2.0.0-preview.2
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="Sparkdo.Communication.Email.Abstractions" Version="2.0.0-preview.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sparkdo.Communication.Email.Abstractions" Version="2.0.0-preview.2" />
<PackageReference Include="Sparkdo.Communication.Email.Abstractions" />
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 Sparkdo.Communication.Email.Abstractions --version 2.0.0-preview.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sparkdo.Communication.Email.Abstractions, 2.0.0-preview.2"
#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 Sparkdo.Communication.Email.Abstractions@2.0.0-preview.2
#: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=Sparkdo.Communication.Email.Abstractions&version=2.0.0-preview.2&prerelease
#tool nuget:?package=Sparkdo.Communication.Email.Abstractions&version=2.0.0-preview.2&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Sparkdo.Communication.Email.Abstractions
Email 通道的稳定消息契约,包含地址、收件人、正文、附件、标头和内容引用。
var message = new EmailMessageBuilder()
.From(new EmailAddress("sender@example.com", "订单中心"))
.AddTo(new EmailAddress("user@example.com"))
.Content(new DirectEmailContent(
subject: "订单已支付",
textBody: "订单已支付。",
htmlBody: "<strong>订单已支付。</strong>"))
.Build();
var request = new EmailChannelRequest("transactional", message);
消息构建完成后为不可变快照。引用内容使用 ReferencedEmailContent,由 IEmailContentResolver 或原生支持引用内容的 Provider 处理;模板定义不属于该包。
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Sparkdo.Communication.Abstractions (>= 2.0.0-preview.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Sparkdo.Communication.Email.Abstractions:
| Package | Downloads |
|---|---|
|
Sparkdo.Communication.Email
Sparkdo Communication Email 渠道路由与 Provider 运行时。 |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.0-preview.2 | 85 | 7/20/2026 |