Easy.Easy.Notifications
1.0.4
Suggested Alternatives
Additional Details
Please migrate to <Easy.Notifications> for the latest updates, improvements, and support.
dotnet add package Easy.Easy.Notifications --version 1.0.4
NuGet\Install-Package Easy.Easy.Notifications -Version 1.0.4
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.Easy.Notifications" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Easy.Easy.Notifications" Version="1.0.4" />
<PackageReference Include="Easy.Easy.Notifications" />
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.Easy.Notifications --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Easy.Easy.Notifications, 1.0.4"
#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.Easy.Notifications@1.0.4
#: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.Easy.Notifications&version=1.0.4
#tool nuget:?package=Easy.Easy.Notifications&version=1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
- Install the NuGet package (TBD):
dotnet add package Easy.Notifications
- 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>"
}
}
}
- Register the service in
Startup.cs
orProgram.cs
:
services.AddEasyNotifications(Configuration);
- 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.
© 2025 Elmin Alirzayev / Easy Code Tools
Product | Versions 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. net9.0 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.AspNetCore.SignalR (>= 1.2.0)
- Microsoft.Extensions.Http (>= 9.0.7)
- Microsoft.Extensions.Logging (>= 9.0.7)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.8)
- SendGrid (>= 9.29.3)
- SendGrid.Extensions.DependencyInjection (>= 1.0.1)
- Twilio (>= 7.12.0)
- Vonage (>= 8.2.0)
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.4 | 367 | 8/6/2025 |