SplatDev.Umbraco.Plugins.Mailer 2.1.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package SplatDev.Umbraco.Plugins.Mailer --version 2.1.4
                    
NuGet\Install-Package SplatDev.Umbraco.Plugins.Mailer -Version 2.1.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="SplatDev.Umbraco.Plugins.Mailer" Version="2.1.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SplatDev.Umbraco.Plugins.Mailer" Version="2.1.4" />
                    
Directory.Packages.props
<PackageReference Include="SplatDev.Umbraco.Plugins.Mailer" />
                    
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 SplatDev.Umbraco.Plugins.Mailer --version 2.1.4
                    
#r "nuget: SplatDev.Umbraco.Plugins.Mailer, 2.1.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 SplatDev.Umbraco.Plugins.Mailer@2.1.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=SplatDev.Umbraco.Plugins.Mailer&version=2.1.4
                    
Install as a Cake Addin
#tool nuget:?package=SplatDev.Umbraco.Plugins.Mailer&version=2.1.4
                    
Install as a Cake Tool

Mailer

Umbraco email integration plugin — send templated HTML emails from Umbraco using SMTP (MailKit) or Microsoft Graph API. Supports Umbraco 13 (net8.0) and Umbraco 17 (net10.0).

NuGet

Compatibility

Umbraco .NET Package Version
13.x 8.0 2.0.0
17.x 10.0 2.0.0

Installation

dotnet add package SplatDev.Umbraco.Plugins.Mailer

Quick Start

Register in Program.cs:

builder.CreateUmbracoBuilder()
    .AddBackOffice()
    .AddWebsite()
    .AddMailer()   // <-- add this
    .Build();

Configuration

The plugin reads SMTP settings from Umbraco's standard GlobalSettings:Smtp block in appsettings.json:

{
  "Umbraco": {
    "CMS": {
      "Global": {
        "Smtp": {
          "Host": "smtp.example.com",
          "Port": 587,
          "Username": "noreply@example.com",
          "Password": "<your-password>",
          "SecureSocketOptions": "StartTls"
        }
      }
    }
  }
}

Usage

Sending Template-Based Email

Inject IEmailService<T> and call SendEmailAsync with a view-model:

using SplatDev.Umbraco.Plugins.Mailer.Models;
using SplatDev.Umbraco.Plugins.Mailer.Services;

public class OrderConfirmationHandler(IEmailService<OrderModel> emailService)
{
    public async Task SendAsync()
    {
        var model = new EmailModel<OrderModel>
        {
            Subject = "Your order has shipped",
            View = "~/Views/Mail/OrderConfirmation.cshtml",
            From = new MailboxAddress("Shop", "noreply@example.com"),
            To = new MailboxAddress("Customer", "customer@example.com"),
            Model = new OrderModel { OrderId = "12345" }
        };

        await emailService.SendEmailAsync(model);
    }
}

Testing Email Configuration

The MailerApiController exposes a test endpoint at /umbraco/backoffice/api/Mailer/SendTestAsync?email=test@example.com — sends a confirmation HTML email to verify SMTP is wired correctly.

Architecture

Component Role
EmailService<T> Generates HTML from Razor views via ViewRenderService and delivers via MailKit SMTP
MicrosoftGraphMailerService Sends email through Microsoft Graph API (Exchange Online)
EmailModel<T> Generic container: subject, body, from/to addresses, Razor view path, domain URL
MailerComposer Registers both services in DI

Dependencies

  • MailKit (SMTP delivery)
  • Microsoft Graph SDK (Exchange Online delivery)
  • Umbraco GlobalSettings:Smtp configuration

License

MIT © SplatDev


Feedback

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.  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 is compatible.  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 SplatDev.Umbraco.Plugins.Mailer:

Package Downloads
SplatDev.Umbraco.Plugins.CacheManager

Umbraco cache manager/warmer plugin supporting Umbraco 13 (net8.0) and Umbraco 17 (net10.0)

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.7 49 8/21/2026
2.1.6 48 8/21/2026
2.1.5 74 8/20/2026
2.1.4 106 8/12/2026
2.1.3 111 8/12/2026
2.1.2 107 8/11/2026
2.1.1 101 8/11/2026
2.1.0 104 8/11/2026
2.0.1 156 6/1/2026
2.0.0 131 6/1/2026