New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

SendWithMailgun

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

SendWithMailgun

Simple class library to send email and validate email addresses using Mailgun.

Source
nugetNuGet
Version
1.1.6
Version published
Maintainers
1
Created
Source

alt tag

SendWithMailgun

NuGet Version NuGet

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; // if you want log messages

string id = null;
id = sender.Send("to", "from", "subject", "body");       // text
id = sender.Send("to", "from", "subject", "html", true); // html
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());

Keywords

mailgun

FAQs

Package last updated on 30 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts