Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
C#
branch: master
Failed to load latest commit information.
.nuget updated nuget
FluentEmail cleaned up some comments
FluentEmailTests
packages Fixed RazorEngine and FluentEmail to use the System.Web.Razor RC from…
.gitattributes added interface for template rendering
.gitignore added interface for template rendering
FluentEmail.sln added interface for template rendering
README.markdown Fence code block as 'csharp'
license.txt Added license

README.markdown

Playing around with a fluent email class in c#

Example usage from:

var email = Email
        .From("john@email.com")
        .To("bob@email.com", "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
    .From("bob@hotmail.com")
    .To("somedude@gmail.com")
    .Subject("woo nuget")
    .UsingTemplate(template, new { Name = "Luke", Compliment = "Awesome" });

Sending:

//send normally
email.Send();

//send asynchronously
email.Sendsync(MailDeliveredCallback);

http://lukencode.com/2011/04/30/fluent-email-now-supporting-razor-syntax-for-templates/

Something went wrong with that request. Please try again.