SmartMail.NET.Core 7.0.0

dotnet add package SmartMail.NET.Core --version 7.0.0
                    
NuGet\Install-Package SmartMail.NET.Core -Version 7.0.0
                    
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="SmartMail.NET.Core" Version="7.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SmartMail.NET.Core" Version="7.0.0" />
                    
Directory.Packages.props
<PackageReference Include="SmartMail.NET.Core" />
                    
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 SmartMail.NET.Core --version 7.0.0
                    
#r "nuget: SmartMail.NET.Core, 7.0.0"
                    
#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 SmartMail.NET.Core@7.0.0
                    
#: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=SmartMail.NET.Core&version=7.0.0
                    
Install as a Cake Addin
#tool nuget:?package=SmartMail.NET.Core&version=7.0.0
                    
Install as a Cake Tool

๐Ÿ“จ SmartMail.NET.Core

SmartMail.NET.Core is a powerful and extensible email delivery pipeline for .NET applications.
It provides a flexible architecture for managing multiple email providers, handling quotas, and implementing fallback mechanisms.


โœจ Features

  • โœ… Multiple Provider Support โ€“ Currently supports SMTP and AWS SES with more providers coming soon
  • ๐Ÿ” Smart Failover โ€“ Automatic switching to backup providers on failure
  • โš™๏ธ Extensible Architecture โ€“ Add custom providers via NuGet packages
  • ๐Ÿ“Š Quota Management โ€“ Hourly, daily, and monthly quota tracking
  • ๐Ÿ”„ Runtime Configuration โ€“ Update provider settings without restart
  • ๐Ÿงช Test-friendly โ€“ Clean interfaces and extensibility built-in

๐Ÿ“ฆ Installation

dotnet add package SmartMail.NET.Core

๐Ÿ› ๏ธ Getting Started

  1. Register the core pipeline in your Program.cs or Startup.cs
  2. Configure your providers
  3. Use the injected services to send emails
services.AddSmartMail(config =>
{
    // Configure SMTP provider
    config.AddProvider<SmtpEmailProvider>(options =>
    {
        options.Name = "SMTP";
        options.Priority = 1;
        options.HourlyQuota = 100;
        options.DailyQuota = 1000;
        options.MonthlyQuota = 10000;
        options.Settings["Host"] = "smtp.gmail.com";
        options.Settings["Port"] = "587";
        options.Settings["EnableSsl"] = "true";
        options.Settings["Username"] = "your-email@gmail.com";
        options.Settings["Password"] = "your-app-password";
        options.Settings["DefaultFrom"] = "your-email@gmail.com";
    });

    // Configure AWS SES provider
    config.AddProvider<AwsSesEmailProvider>(options =>
    {
        options.Name = "AWS SES";
        options.Priority = 2;
        options.HourlyQuota = 200;
        options.DailyQuota = 2000;
        options.MonthlyQuota = 20000;
        options.Settings["Region"] = "us-west-2";
        options.Settings["AccessKey"] = "your-access-key";
        options.Settings["SecretKey"] = "your-secret-key";
    });

    // Configure provider behavior
    config.ConfigureProviders(options =>
    {
        options.EnableFallback = true;
        options.MaxRetries = 3;
    });
});

๐Ÿ“ฆ Provider Architecture

Every email provider implements the shared IEmailProvider interface, allowing:

  • Custom retry logic
  • Load balancing
  • Metrics collection
  • Easy fallback switching

Want to build your own provider? Just implement the interface and register it.


๐Ÿงฑ Architecture

Validate Email
    โ†“
Select Provider (priority/failover)
    โ†“
Check Quotas
    โ†“
Send Email
    โ†“
Track Result

๐Ÿ“Œ Roadmap

  • Core pipeline and interfaces
  • SMTP provider
  • AWS SES provider
  • SendGrid provider
  • Mailgun provider
  • Webhook support for delivery confirmations
  • SQL Server / PostgreSQL logging
  • Hangfire/Quartz integration

๐Ÿค Contributing

This project is owned and maintained by the Net of Code team. All contributions become the property of Net of Code.

Contributions are welcome! Whether it's a bug fix, a new provider, or improvements โ€” please open a PR or issue.


๐Ÿ“„ License

MIT

Product Compatible and additional computed target framework versions.
.NET 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 was computed.  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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SmartMail.NET.Core:

Package Downloads
SmartMail.NET.Dashboard

Dashboard UI for SmartMail.NET - Monitor your email providers and sending status in real-time

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
7.0.0 193 5/11/2025