PommaLabs.Liquimail
2.6.0
Prefix Reserved
dotnet add package PommaLabs.Liquimail --version 2.6.0
NuGet\Install-Package PommaLabs.Liquimail -Version 2.6.0
<PackageReference Include="PommaLabs.Liquimail" Version="2.6.0" />
paket add PommaLabs.Liquimail --version 2.6.0
#r "nuget: PommaLabs.Liquimail, 2.6.0"
// Install PommaLabs.Liquimail as a Cake Addin #addin nuget:?package=PommaLabs.Liquimail&version=2.6.0 // Install PommaLabs.Liquimail as a Cake Tool #tool nuget:?package=PommaLabs.Liquimail&version=2.6.0
Liquimail
Liquimail implements glue code to use Liquid templates with MailKit.
Library is feature complete and no further development is planned on this project, except for routine maintenance and bug fixes.
Liquimail templates are processed using DotLiquid library and mail messages are sent with MailKit.
Liquid templates can be stored in three different ways:
- Local file system,
- Embedded resources,
- SQL database table.
A fake, in-memory mail sender is also provided in order to easily perform unit tests.
Table of Contents
Install
NuGet package PommaLabs.Liquimail is available for download:
dotnet add package PommaLabs.Liquimail
Another package, PommLabs.Liquimail.AspNetCore, which is focused on ASP.NET Core integrations, is also available for download:
dotnet add package PommaLabs.Liquimail.AspNetCore
Usage
Liquimail exposes two main interfaces:
- IMailSender, which actually sends mail messages.
- IMailTemplatesManager, which loads mail templates.
Configuring the first interface is mandatory, while the second one is needed
only when using SendMail
overloads which use the templating system based on DotLiquid.
Maintainers
Contributing
MRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
Editing
Visual Studio Code, with Remote Containers extension, is the recommended way to work on this project.
A development container has been configured with all required tools.
Visual Studio Community is also supported
and an updated solution file, liquimail.sln
, has been provided.
Restoring dependencies
When opening the development container, dependencies should be automatically restored.
Anyway, dependencies can be restored with following command:
dotnet restore
Running tests
Tests can be run with following command:
dotnet test
Tests can also be run with following command, which collects coverage information:
./build.sh --target run-tests
License
MIT © 2018-2023 PommaLabs Team and Contributors
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- AngleSharp (>= 1.0.7)
- DotLiquid (>= 2.2.692)
- MailKit (>= 4.3.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 6.0.4)
- System.Diagnostics.DiagnosticSource (>= 8.0.0)
-
net8.0
- AngleSharp (>= 1.0.7)
- DotLiquid (>= 2.2.692)
- MailKit (>= 4.3.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- System.Diagnostics.DiagnosticSource (>= 8.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on PommaLabs.Liquimail:
Package | Downloads |
---|---|
PommaLabs.Liquimail.AspNetCore
Liquimail implements glue code to use Liquid templates with MailKit. This package contains ASP.NET Core extensions, helpers and components. For example, this package contains an health check which makes sure that SMTP server is reachable. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.6.0 | 5,107 | 11/18/2023 |
2.5.1 | 968 | 12/18/2022 |
2.5.0 | 99 | 12/17/2022 |
2.4.0 | 5,583 | 11/21/2021 |
2.3.5 | 768 | 8/29/2021 |
2.3.4 | 232 | 8/19/2021 |
2.3.3 | 2,272 | 4/5/2021 |
2.3.2 | 506 | 4/4/2021 |
2.3.0 | 1,160 | 2/7/2021 |
2.2.0 | 670 | 11/21/2020 |
2.1.2 | 1,715 | 6/15/2020 |
2.1.1 | 658 | 6/14/2020 |
2.1.0 | 666 | 6/14/2020 |
2.0.2 | 564 | 6/11/2020 |
2.0.1 | 484 | 6/1/2020 |
2.0.0 | 595 | 3/9/2020 |
1.2.2 | 525 | 3/2/2020 |
1.2.1 | 553 | 2/23/2020 |
1.2.0 | 754 | 1/2/2020 |
1.1.6 | 2,458 | 8/31/2019 |
1.1.5 | 2,535 | 2/28/2019 |
1.1.4 | 1,596 | 12/28/2018 |
1.1.3 | 1,367 | 11/11/2018 |
1.1.2 | 1,438 | 9/1/2018 |
1.1.0 | 1,254 | 8/22/2018 |
1.0.2 | 863 | 8/17/2018 |
1.0.1 | 904 | 8/14/2018 |
1.0.0 | 1,060 | 6/2/2018 |
0.1.0 | 980 | 5/27/2018 |