PreMailer.Net
RazorLight
Our great sponsors
PreMailer.Net | RazorLight | |
---|---|---|
3 | 11 | |
641 | 1,480 | |
0.5% | - | |
7.8 | 0.0 | |
4 days ago | 7 months ago | |
C# | C# | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PreMailer.Net
-
Preview rendered .cshtml with the same style restrictions that email clients use
If you don't already know about it, go check out PreMailer.net. It's a handy tool you can use to adjust styles to be more likely to work in email clients.
-
Reporting group membership for critical Active Directory groups
Up until now I've just been working with CSS which I was able to use in email by finding a tool that converts it to in-line style attributes (https://github.com/milkshakesoftware/PreMailer.Net)
-
New library: BlazorTemplater
CSS classes can be used in the generated code but CSS support in rendered HTML emails is very patchy and inconsistent. You should use a tool like PreMailer.NET to inline the CSS.
RazorLight
-
Introducing TopazView: A Lightweight and Powerful View Engine
Yes, I have used Razor pages in non-website applications before where I needed to load the cshtml templates from a different source. I have written Line of Business apps (think WinForms or WPF) where the reporting spits out HTML with tables and charts. There are a number of similar projects to yours out there which I have used in the past such as RazorLight or RazorMachine.
- A Handlebar and Puppeteer Equivalent in C#?
-
Sending HTML based emails. Is there an easier way to dynamically generate the document?
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.
-
Email template engine
We use https://github.com/toddams/RazorLight in combination with serverless functions.
- Rendering HTML (C# windows forms) not working after deploy
-
Generating html in a hosted service
you could use a razor based engine to generate html based on a view model (your data). take a look at: https://github.com/toddams/RazorLight i use it to generate html emails
-
Don't make me think, or why I switched to Rails from JavaScript SPAs
Rails has a templating system for generating emails (standard HTML/ERB files). If you're running an ASP.NET Web API (not MVC) the best way of doing that I've found is via Razorlight which you have to set up manually - https://github.com/toddams/RazorLight
With Rails the standard is pretty much Devise or Omniauth (or both) - does everything for you. I've never found anything for ASP like Devise which gives you an entire login system with all the required views/migrations in a couple commands.
-
How would you setup a e-mail template / content in .NET in order to reference to templates when sending mail?
I use RazorLight: https://github.com/toddams/RazorLight
-
How to render a Razor view from a Console application?
Razor Light
- How do you manage transactional email templates?
What are some alternatives?
MailKit - A cross-platform .NET library for IMAP, POP3, and SMTP.
RazorEngine - Open source templating engine based on Microsoft's Razor parsing engine
FluentEmail - All in one email sender for .NET. Supports popular senders (SendGrid, MailGun, etc) and Razor templates.
scriban - A fast, powerful, safe and lightweight scripting language and engine for .NET
MimeKit - A .NET MIME creation and parser library with support for S/MIME, PGP, DKIM, TNEF and Unix mbox spools.
Handlebars.Net - A real .NET Handlebars engine
postal - Email sending for asp.net mvc using the view engine system to render emails.
DotLiquid - .NET Port of Tobias Lütke's Liquid template language.
StrongGrid - Strongly typed library for the entire SendGrid v3 API, including webhooks
Mustache Sharp - An extension of the mustache text template engine for .NET.
BlazorTemplater - A library that generates HTML (e.g. for emails) from Razor Components
SmartFormat.NET - A lightweight text templating library written in C# which can be a drop-in replacement for string.Format