SkillAgentSearch skills...

Yurumi

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

Install / Use

/learn @goto10hq/Yurumi
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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.

View on GitHub
GitHub Stars18
CategoryDevelopment
Updated2y ago
Forks2

Languages

C#

Security Score

80/100

Audited on Jun 5, 2023

No findings