Scott.Mail.Smtp2Go.AspNetCore 1.3.5

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

Scott.Mail.Smtp2Go

A .NET client for the whole SMTP2GO v3 API: sending (JSON, MIME, batch, scheduled), webhooks, reporting and statistics, templates, suppressions, allowed senders and recipients, API keys, SMTP users, domains, subaccounts, email archiving and SMS. Targets netstandard2.0, net8.0 and net10.0, is trim- and AOT-compatible, sends the API key in a header rather than the body, and surfaces the API's own error payloads as typed exceptions.

Install

dotnet package add Scott.Mail.Smtp2Go
Package Adds
Scott.Mail.Smtp2Go The client: every documented operation, the webhook callback parser, typed errors, diagnostics hooks.
Scott.Mail.Smtp2Go.DependencyInjection AddSmtp2Go: options binding and validation, IHttpClientFactory, resilience pipeline, named clients, logging and metrics.
Scott.Mail.Smtp2Go.AspNetCore MapSmtp2GoWebhook: an endpoint that authenticates, checks and parses SMTP2GO callbacks and dispatches typed events to your handlers.

Quick start

using Scott.Mail.Smtp2Go;

var client = new Smtp2GoClient(apiKey: "api-...");

var response = await client.Email.SendAsync(new EmailSendRequest
{
    Sender = "Alice <alice@example.com>",
    To = ["bob@example.com"],
    Subject = "Hello from Scott.Mail.Smtp2Go",
    TextBody = "It works.",
});

Console.WriteLine($"Sent: {response.Data.Succeeded} succeeded, {response.Data.Failed} failed ({response.RequestId})");

Licensed under LGPL-3.0-or-later.

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.3.5 63 9/11/2026