jcamp.FluentEmail.Mjml
5.0.0
Prefix Reserved
dotnet add package jcamp.FluentEmail.Mjml --version 5.0.0
NuGet\Install-Package jcamp.FluentEmail.Mjml -Version 5.0.0
<PackageReference Include="jcamp.FluentEmail.Mjml" Version="5.0.0" />
<PackageVersion Include="jcamp.FluentEmail.Mjml" Version="5.0.0" />
<PackageReference Include="jcamp.FluentEmail.Mjml" />
paket add jcamp.FluentEmail.Mjml --version 5.0.0
#r "nuget: jcamp.FluentEmail.Mjml, 5.0.0"
#:package jcamp.FluentEmail.Mjml@5.0.0
#addin nuget:?package=jcamp.FluentEmail.Mjml&version=5.0.0
#tool nuget:?package=jcamp.FluentEmail.Mjml&version=5.0.0

FluentEmail - All in one email sender for .NET and .NET Core
MJML Compiler for FluentEmail
Processes email templates after rendering through Mjml.Net, so templates written in MJML render to responsive HTML emails. Requires .NET 10, and is Native AOT and trimming compatible.
Write the template in MJML, with the placeholders of whichever template renderer you use, and FluentEmail renders it and then compiles the MJML to HTML.
var template = """
<mjml>
<mj-body>
<mj-section>
<mj-column>
<mj-text>Hi ##Name##</mj-text>
<mj-button href="https://example.com">Open</mj-button>
</mj-column>
</mj-section>
</mj-body>
</mjml>
""";
var email = Email
.From("bob@hotmail.com")
.To("somedude@gmail.com")
.Subject("woo nuget")
.UsingMjmlTemplate(template, new { Name = "Luke" });
UsingMjmlBody, UsingMjmlTemplateFromEmbedded, UsingMjmlTemplateFromFile and UsingMjmlCultureTemplateFromFile work the same way, and CompileMjml() compiles a body that is already set.
Each takes optional MjmlOptions for Mjml.Net, such as Beautify (on by default), KeepComments, fonts, the validator or PostProcessors:
email.UsingMjmlTemplate(template, model, new MjmlOptions { Beautify = false });
As with MJML's default soft validation, validation errors don't stop the HTML from being produced.
| 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. |
-
net10.0
- jcamp.FluentEmail.Core (>= 5.0.0)
- jcamp.MjmlNet (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.0 | 48 | 12/2/2026 |