UnDotNet / BootstrapEmail

DotNet Version of Bootstrap stylesheet, compiler, and inliner for responsive and consistent emails with the Bootstrap syntax you know and love.
https://bootstrapemail.azurewebsites.net
MIT License
2 stars 0 forks source link
bootstrap dotnet email templates

bootstrapemail

UnDotNet.BootstrapEmail

Ported from BootstrapEmail. Their excellent templates compile fine under .NET. Highly recommend checking them out!

If you know Bootstrap, you know Bootstrap Email.

Explore Bootstrap Email docs

Bootstrap Email takes most of its inspiration from these two wonderful frameworks, Bootstrap and Tailwind but for HTML emails. Working with HTML in emails is never easy because of the nuances of email vs the web. With Bootstrap Email you don't have to understand all the nuance and it allows you to write emails like you would a website.

Setup

There are a few different ways you can use Bootstrap Email to compile emails:

Installation

Add NuGet package UnDotNet.BootstrapEmail to your project

Basic Usage

using UnDotNet.BootstrapEmail;

var compiler = new BootstrapCompiler(source);

// both htlm & plaintext
var result = compiler.Multipart();

// only text
var text = compiler.Text();

// only html
var text = compiler.Html();

Not Implemented Features

Documentation

For full documentation, visit bootstrapemail.com