Easy.Notifications 1.0.11

dotnet add package Easy.Notifications --version 1.0.11
                    
NuGet\Install-Package Easy.Notifications -Version 1.0.11
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Easy.Notifications" Version="1.0.11" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Easy.Notifications" Version="1.0.11" />
                    
Directory.Packages.props
<PackageReference Include="Easy.Notifications" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Easy.Notifications --version 1.0.11
                    
#r "nuget: Easy.Notifications, 1.0.11"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Easy.Notifications@1.0.11
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Easy.Notifications&version=1.0.11
                    
Install as a Cake Addin
#tool nuget:?package=Easy.Notifications&version=1.0.11
                    
Install as a Cake Tool

Build & Test Build & Release Build & Nuget Publish Release License

Easy.Notifications

Easy.Notifications is a modular and extensible .NET library for sending notifications through multiple channels. It provides a unified interface to dispatch messages via Email, SMS, WhatsApp, Telegram, Slack, Microsoft Teams, and more.

Features

  • 🔌 Plug-and-play support for:
    • SMTP, SendGrid, Mailgun
    • Twilio, Vonage (SMS & WhatsApp)
    • Telegram Bots
    • Slack (Block Kit)
    • Microsoft Teams (MessageCard)
  • 📦 Simple service registration via AddEasyNotifications()
  • 🧩 Extensible provider model
  • 🔒 Configuration-based setup
  • ☁️ SignalR support (optional)

Installation

  1. Install the NuGet package (TBD):
dotnet add package Easy.Notifications
  1. Add configuration section in appsettings.json:
{
  "NotificationConfiguration": {
    "NotificationOptions": {
      "UseEmail": true,
      "UseSms": true,
      "UseWhatsApp": true,
      "UseTelegram": true,
      "UseSlack": true,
      "UseTeams": true
    },
    "NotificationProviders": {
      "EmailProvider": "Sendgrid", // Options: "Smtp", "Sendgrid", "Mailgun"
      "SmsProvider": "Twilio" // Options: "Twilio", "Vonage" (ex nexmo)
    },
    "EmailConfiguration": {
      // SMTP
      "Host": "smtp.yourdomain.com",
      "Port": 587,
      "Username": "your-smtp-username",
      "Password": "your-smtp-password",
      "Sender": "noreply@yourdomain.com",
      "SenderDisplayName": "Your App Name"
      "EnableSsl": true,
    }
    /*
    // SendGrid
    "EmailConfiguration": {
      "ApiKey": "<SENDGRID_API_KEY>",
      "Sender": "noreply@example.com",
      "SenderDisplayName": "Easy Notifications"
    },
    */
    // Mailgun
    "EmailConfiguration": {
      "ApiKey": "<MAILGUN_API_KEY>",
      "Domain": "<MAILGUN_DOMAIN>",
      "Sender": "noreply@example.com",
      "SenderDisplayName": "Easy Notifications"
    },
    */
    "SmsConfiguration": {
    // Twilio
      "Username": "<TWILIO_SID>",
      "Password": "<TWILIO_TOKEN>",
      "Sender": "+1234567890"
    },
    /*
    // Vonage (Nexmo)
    "SmsConfiguration": {
      "Username": "<ACCOUNT_SID>",
      "Password": "<AUTH_TOKEN>",
      "Sender": "+1234567890"
    */
    "WhatsAppConfiguration": {
      "AccountSid": "<ACCOUNT_SID>",
      "AuthToken": "<AUTH_TOKEN>",
      "Sender": "whatsapp:+1234567890"
    },
    "TelegramConfiguration": {
      "BotToken": "<BOT_TOKEN>",
      "ChatId":   "<CHAT_ID>" 
    },
    "SlackConfiguration": {
      "WebhookUrl": "<SLACK_WEBHOOK_URL>"
    },
    "TeamsConfiguration": {
      "WebhookUrl": "<TEAMS_WEBHOOK_URL>"
    }
  }
}
  1. Register the service in Startup.cs or Program.cs:
services.AddEasyNotifications(Configuration);
  1. Inject and use INotificationService:
public class NotificationController : ControllerBase
{
    private readonly INotificationService _notificationService;

    public NotificationController(INotificationService notificationService)
    {
        _notificationService = notificationService;
    }

    [HttpPost("notify")]
    public async Task<IActionResult> Send(NotificationMessage message)
    {
        await _notificationService.SendAsync(message);
        return Ok();
    }
}

SignalR Integration

If using SignalR:

app.UseEndpoints(endpoints =>
{
    endpoints.MapHub<NotificationHub>("/notificationHub");
});

License

MIT License.


© Elmin Alirzayev 2025 / Easy Code Tools

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
.NET Framework net47 is compatible.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.11 136 8/11/2025
1.0.7 151 8/8/2025
1.0.6 192 8/8/2025
1.0.5 198 8/8/2025

-Resolved build warnings and transitive dependency conflicts