UniversalNotifier.NET.Mailgun 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global UniversalNotifier.NET.Mailgun --version 1.0.0                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local UniversalNotifier.NET.Mailgun --version 1.0.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=UniversalNotifier.NET.Mailgun&version=1.0.0                
nuke :add-package UniversalNotifier.NET.Mailgun --version 1.0.0                

UniversalNotifier.NET

UniversalNotifier.NET is a simple and flexible notification system for .NET applications. It allows you to send notifications via multiple channels (starting with email via MailGun, with plans for SMS and other services) quickly and easily. This package is designed to streamline notification handling and provide a unified interface.

Features

  • Send notifications via email (using MailGun).
  • Future plans for SMS and additional notification methods.
  • Simple and easy-to-use API.

Installation

You can install the package via NuGet Package Manager:

Install-Package UniversalNotifier.NET

Or using the .NET CLI:

dotnet add package UniversalNotifier.NET

Getting Started

Sending an Email via MailGun

Below is a simple example of how to send an email notification using UniversalNotifier.NET with MailGun:

using UniversalNotifier;

var notifier = new MailGunNotifier("your-api-key", "your-domain");
notifier.SendEmail("recipient@example.com", "Subject of the Email", "This is the email body.");

Configuration

To use MailGun, you will need:

  • A MailGun API key
  • Your MailGun domain

Pass these values to the MailGunNotifier when initializing the object.

Future Plans

  • Support for SMS notifications (e.g., Twilio, Nexmo)
  • Additional email services (e.g., SendGrid, SMTP)
  • Push notifications

Contributing

Contributions are welcome! Feel free to submit pull requests for new features or bug fixes.

Contact

For any questions or feedback, feel free to open an issue or reach out to me.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.0.1 102 10/3/2024
1.0.0 90 10/3/2024