Sending HTML based emails. Is there an easier way to dynamically generate the document?

This page summarizes the projects mentioned and recommended in the original post on /r/csharp

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • Handlebars.Net

    A real .NET Handlebars engine

    I use this https://github.com/Handlebars-Net/Handlebars.Net to generate HTML emails.

  • RazorLight

    Template engine based on Microsoft's Razor parsing engine for .NET Core

    Your mileage may vary but I've had good luck with the RazorLight library for generating HTML emails from a template with data merged in. Under the hood, it uses the ASP.NET Razor engine for applying a model to a template.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • MJML

    MJML: the only framework that makes responsive-email easy

    We use MJML templates (https://mjml.io/) to generate HTML that's more compatible with email clients. Not sure if that helps.

  • FluentEmail

    All in one email sender for .NET. Supports popular senders (SendGrid, MailGun, etc) and Razor templates.

    Surprised no one has mentioned this- https://github.com/lukencode/FluentEmail

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts