Notifications Module - Overview
Production-ready notification delivery for email and SMS. Supports multiple providers, Liquid templates, async queuing, and comprehensive instrumentation.
Why Use Primus Notifications?
Integrating multiple notification channels is complex. Primus Notifications provides a unified API for sending emails and SMS through any provider.
| Feature | DIY Approach | Primus Notifications |
|---|---|---|
| Multi-Provider | Manual per provider | Unified API |
| Templates | String concatenation | Liquid templates |
| Async Delivery | DIY queuing | Built-in workers |
| Failover | Manual fallback | Per-channel outcome |
Supported Channels
Send emails via SMTP, SendGrid, or AWS SES.
SMTPSendGridSES
SMS
Send SMS via Twilio, AWS SNS, or Azure Communication Services.
TwilioAWS SNSAzure
Provider Options
| Channel | Provider | Configuration |
|---|---|---|
| SMTP | UseSmtp() | |
| SendGrid | UseSendGrid() | |
| AWS SES | UseAmazonSes() | |
| SMS | Twilio | UseTwilio() |
| SMS | AWS SNS | UseAwsSns() |
| SMS | Azure | UseAzureCommunicationServices() |
Quick Install
dotnet add package PrimusSaaS.Notifications --version 2.0.0
Supports: .NET 6, 7, 8
See Also
- Email Setup
- SMS Setup
- Multi-Tenancy (tenant-scoped notifications)