Skip to content

sk2andy/emailBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

emailBuilder

this is a small project to create email html in C# .NET (core)

Components

you can use these components or build your own ones by deriving from IMailComponent

  • TitleComponent
  • TextComponent
  • RowComponent
  • ColumnComponent
  • SeparatorComponent
  • ImageComponent
  • ButtonComponent

How to use

Clone git repo or add Nuget package

start with using the MailBuilder like this:

var mailBuilder = new MailBuilder
{
    new RowComponent {new TitleComponent("Your Title", new Uri("your title image"))},
    new RowComponent
    {
        new ColumnComponent(4) {new TextComponent("some text")},
        new ColumnComponent(8) {new TextComponent("some other text")}
    }
}

and when you added all your stuff simply run mailbuilder.Build() to get the html content string for your email

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published