Skip to content

Files

Latest commit

 

History

History
52 lines (37 loc) · 1.98 KB

README.md

File metadata and controls

52 lines (37 loc) · 1.98 KB

Yurumi

Yurumi

Software License Latest Version on NuGet NuGet Visual Studio Team services .NETStandard 2.0

What Yurumi can do?

If you need just send a HTML e-mail with some basic tag replacements... Yurumi is here for you.

Setup

var connection = new Connections.SmtpConnection
(
     "smtp.yuru.mi",
     25,
     "user",
     "password",
     false // no ssl
);
            
var configuration = new Configurations.SendGridConfiguration("Yurumi", true);
var mailer = new Mailer(connection, configuration);

mailer.SendFromFile
( 
     "Template/index.html",
     new System.Net.Mail.MailAddress("noreply@yuru.mi"),
     new System.Net.Mail.MailAddressCollection { "me@me.com" },
     "[TEST] Yurumi",
     new Dictionary<string, object> { { "Salutation", "Hello my lovely robot," } }
);

HTML template

Images are autoprocessed as linked resources.

There is only a very simple tag replacements implemented. Use tags like that in HTML file: {something}. And then replace them this way: new Dictionary<string, object> { { "something", "Aloha!" } }

Acknowledgement

Based on my lib Drool which becames too funky and not working in .NET Core because of too close ties with ASP.NET MVC.

License

MIT © frohikey / Goto10 s.r.o.