Skip to content
forked from goto10hq/Drool

Extremely lightweight, easy and cute library for sending HTML e-mails.

License

Notifications You must be signed in to change notification settings

liyang-love/Drool

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drool

Software License Latest Version on NuGet NuGet Visual Studio Team services

What is it?

Mega easy way to send HTML email with advantages:

  • auto converting images in HTML as inline content (cid resources)
  • possibility for easy string replacing

Configuration

<appSettings>
    <add key="Drool.SmtpServer" value="smtp.sendgrid.net"/>
    <add key="Drool.SmtpPort" value="25"/>
    <add key="Drool.EnableSsl" value="false"/>
    <add key="Drool.SmtpLogin" value="mylogin"/>
    <add key="Drool.SmtpPassword" value="mypassword"/>
    <add key="Drool.Category" value="Drool"/>
</appSettings>

Usage

var mailer = new Mailer("EmailTemplate/index.html", new MailGun("Drool", true, new { level = 42 }));

mailer.Send(from, to, "My subject is test", new Dictionary<string, object>
    {
        { "Salutation", "Hello my lovely robot," },
        { "Yes", "http://www.goto10.cz" },
        { "No", "http://www.github.com" }
    });

TODO

  • some template engine... Razor?
  • instead of System.Net using MailKit?

About

Extremely lightweight, easy and cute library for sending HTML e-mails.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 86.0%
  • HTML 14.0%