goto10hq / Yurumi

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:MIT License


Languages

Language:C# 84.7%Language:HTML 15.3%