SplatDev.Messaging.SocketLabs 1.0.2

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

SplatDev.Messaging.SocketLabs

SocketLabs email provider for SplatDev.Messaging — sends transactional and bulk emails via the SocketLabs Injection API using the SocketLabs.EmailDelivery SDK.

NuGet License: MIT

Compatibility

.NET Umbraco Package Version
8.0 13 1.0.0
10.0 17 1.0.0

Installation

dotnet add package SplatDev.Messaging.SocketLabs

Configuration

Constructor

using SplatDev.Messaging.SocketLabs.Controllers;

var socketLabs = new SocketLabsController(
    serverId: 12345,
    injectionApiKey: "your-socketlabs-injection-api-key");
  • serverId — Your SocketLabs server ID (integer)
  • injectionApiKey — Your SocketLabs Injection API key
builder.Services.AddSingleton<SocketLabsController>(sp =>
{
    var serverId = int.Parse(builder.Configuration["SocketLabs:ServerId"]!);
    var apiKey = builder.Configuration["SocketLabs:InjectionApiKey"];
    return new SocketLabsController(serverId, apiKey!);
});

appsettings.json

{
  "SocketLabs": {
    "ServerId": "12345",
    "InjectionApiKey": "your-injection-api-key"
  }
}

Usage

Single message

using SplatDev.Messaging.Interfaces;

var result = socketLabs.SendMessage(
    subject: "Welcome!",
    from: "SplatDev",
    fromAddress: "no-reply@example.com",
    to: "Customer",
    toAddress: "customer@example.com",
    message: "<h1>Welcome aboard!</h1>",
    plainMessage: "Welcome aboard!");

// Async
var resultAsync = await socketLabs.SendMessageAsync(
    subject: "Invoice",
    from: "Billing",
    fromAddress: "billing@example.com",
    to: "Customer",
    toAddress: "customer@example.com",
    message: "<p>Your invoice is ready</p>",
    plainMessage: "Your invoice is ready");

Bulk message

using SplatDev.Messaging.SocketLabs.Controllers;
using SplatDev.Messaging.SocketLabs.Models;

var bulk = new SocketLabsBulkController(serverId, injectionApiKey);

var addresses = new List<BulkAddress>
{
    new BulkAddress { Email = "user1@example.com", FriendlyName = "User One" },
    new BulkAddress { Email = "user2@example.com", FriendlyName = "User Two" }
};

var message = new BulkMessageData
{
    Subject = "Newsletter #42",
    HtmlBody = "<h1>Latest updates</h1>",
    PlainTextBody = "Latest updates",
    From = new BulkAddress { Email = "newsletter@example.com" }
};

var response = bulk.SendBulkMessage(addresses, message);

Features

  • SocketLabsController — single-message IMessagingController<BasicMessage, SendResponse> implementation
  • SocketLabsBulkController — bulk email via IBulkMessagingController<BulkMessageData, SendResponse>
  • BulkAddress and BulkMessageData models for merge-style bulk sending
  • Sync and async delivery methods
  • Uses official SocketLabs.EmailDelivery SDK

Supported operations

Operation Controller Method
Send single email SocketLabsController SendMessage / SendMessageAsync
Send bulk email SocketLabsBulkController SendBulkMessage

Dependencies

Package Purpose
SplatDev.Messaging Core messaging abstractions (IMessagingController<T,U>, IBulkMessagingController<T,U>)
SocketLabs.EmailDelivery 1.4.2 Official SocketLabs Injection API SDK

SplatDev.Messaging.SocketLabs — part of the SplatDev.Umbraco.Plugins suite. Licensed under MIT. © SplatDev Ltda.

Changelog

1.0.2 — 2026-08-24

Removes a dashboard screenshot that showed an error toast. It was captured against a site where this plugin's API was unreachable, so it advertised a broken dashboard. No screenshot is better than a misleading one; a replacement will be taken against a working install.

1.0.1 — 2026-08-24

Package metadata only: the listing now carries an icon and search tags, and the project and repository links point at the organisation that actually hosts this code. No code changes.

1.0.0 — 2026-08-24

This package now keeps a changelog. Earlier releases predate it and are not reconstructed here — consult the repository history for those. From this version on, every release records what changed for someone using it.

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

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.2 47 8/24/2026