Skip to content

srijken/FluentEmail

 
 

Repository files navigation

Playing around with a fluent email class in c#

Example usage from:

var email = Email
    	.From("[email protected]")
    	.To("[email protected]", "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("[email protected]")
    .To("[email protected]")
    .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/

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%