
SendWithMailgun

SendWithMailgun is a really small class library with only one goal in mind: sending an email with Mailgun. That's it. Need other features? Not here, sorry :(
New in v1.1.x
- Dependency updates
- Remove Newtonsoft.Json
- Add support for email validation
Help or feedback
First things first - do you need help or have feedback? File an issue! Happy to help.
Simple Email Example
using SendWithMailgun;
MailgunSender sender = new MailgunSender("[mydomain.com]", "[apikey]");
sender.Logger = Console.WriteLine;
string id = null;
id = sender.Send("to", "from", "subject", "body");
id = sender.Send("to", "from", "subject", "html", true);
Console.WriteLine("Message ID: " + id);
Simple Validation Example
using SendWithMailgun;
MailgunValidator validator = new MailgunValidator("[apikey]");
MailgunValidationResult result = validator.Validate("[emailaddress]");
Console.WriteLine("Result: " + result.Result.ToString() + " risk level: " + result.Risk.ToString());