Skip to content

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

License

Notifications You must be signed in to change notification settings

goto10hq/Yurumi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published