Katalyst.App.Email
1.2.1
dotnet add package Katalyst.App.Email --version 1.2.1
NuGet\Install-Package Katalyst.App.Email -Version 1.2.1
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="Katalyst.App.Email" Version="1.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Katalyst.App.Email" Version="1.2.1" />
<PackageReference Include="Katalyst.App.Email" />
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 Katalyst.App.Email --version 1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Katalyst.App.Email, 1.2.1"
#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 Katalyst.App.Email@1.2.1
#: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=Katalyst.App.Email&version=1.2.1
#tool nuget:?package=Katalyst.App.Email&version=1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Email library
This library provides a simple, file-based email system with two main responsibilities:
- Sending (transport):
App.Email.Sending - Rendering (templates):
App.Email.Rendering
You can use either part independently, or combine them: render an email from a Razor template and then send it via SMTP.
Project structure
- Sending
Sending/EmailMessage.cs- DTO describing an email to send.Sending/IEmailService.cs- abstraction for sending anEmailMessage.Sending/EmailService.cs- SMTP implementation usingEmail:Smtpfrom configuration.
- Rendering
Rendering/RenderedEmail.cs- subject/body result of rendering a template.Rendering/IEmailRenderer.cs- abstraction for rendering templates intoRenderedEmail.Rendering/RazorEmailRenderer.cs- implementation using RazorLight and.cshtmltemplates.
Configuration
EmailServiceexpects anEmailsection.- Required keys:
Email:Smtp:ServerEmail:Smtp:PortEmail:Smtp:SenderEmailEmail:Smtp:SenderNameEmail:Smtp:Password
- Optional keys:
Email:Smtp:EnableSsl(defaults to true)Email:TemplatesRoot(absolute or relative path to templates folder)
| 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
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.5)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.5)
- RazorLight (>= 2.3.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.