Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 FluentEmail
Octocat-spinner-32 FluentEmailTests
Octocat-spinner-32 packages
Octocat-spinner-32 .gitignore
Octocat-spinner-32 FluentEmail.sln
Octocat-spinner-32 README.markdown

NOTICE: This project is now obsolete

Consider using this FluentEmail.Markdown instead

Playing around with a fluent email class in c#

Example usage from:

var email = Email
        .To("", "bob")
        .Subject("hows it going bob")
        .Body("yo dawg, sup?");

Templates usage:

var template = "Dear @Model.Name, You are totally @Model.Compliment.";

var email = Email
    .Subject("woo nuget")
    .UsingTemplate(template, new { Name = "Luke", Compliment = "Awesome" });


//send normally

//send asynchronously

Markdown template support!

New support for using Markdown templates has been added. This uses the Markdown Razor support in ServiceStack and supports full model binding as available in standard Razor.

Example using a Markdown template:

var email = Email
    .Subject("woo nuget")
    .UsingMarkdownTemplateFromFile(@"~/", new { Name = "Luke", Numbers = new string[] { "1", "2", "3" } });

# Heading 1

This is a [Markdown]( page

- one
- two
- three

You can also bind to Model

Name: @Model.Name


@foreach i in Model.Numbers {
- Number: @i

And do cool stuff like get the current date/time @DateTime.Now

This will be the rendered output (Message.Body):

<p>This is a <a href="">Markdown</a> page</p>


<p>You can also bind to Model</p>

<p>Name: LUKE</p>


<li>Number: 1</li>
<li>Number: 2</li>
<li>Number: 3</li>

<p>And do cool stuff like get the current date/time 20/04/2012 4:52:33 PM</p>

Something went wrong with that request. Please try again.