If you need just send a HTML e-mail with some basic tag replacements... Yurumi is here for you.
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," } }
);
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!" } }
Based on my lib Drool which becames too funky and not working in .NET Core because of too close ties with ASP.NET MVC.
MIT © frohikey / Goto10 s.r.o.