VoTranThi / FluentEmail

.net fluent email class

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/

About

.net fluent email class

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

License:MIT License


Languages

Language:C# 100.0%