Scott.Mail.Smtp2Go
1.6.0
dotnet add package Scott.Mail.Smtp2Go --version 1.6.0
NuGet\Install-Package Scott.Mail.Smtp2Go -Version 1.6.0
<PackageReference Include="Scott.Mail.Smtp2Go" Version="1.6.0" />
<PackageVersion Include="Scott.Mail.Smtp2Go" Version="1.6.0" />
<PackageReference Include="Scott.Mail.Smtp2Go" />
paket add Scott.Mail.Smtp2Go --version 1.6.0
#r "nuget: Scott.Mail.Smtp2Go, 1.6.0"
#:package Scott.Mail.Smtp2Go@1.6.0
#addin nuget:?package=Scott.Mail.Smtp2Go&version=1.6.0
#tool nuget:?package=Scott.Mail.Smtp2Go&version=1.6.0
Scott.Mail.Smtp2Go
.NET (netstandard2.0, net10.0 and net11.0) 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. It 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. A net8.0 build is still included but deprecated: .NET 8 has been out of Microsoft support since November 2026, and the next major version drops it.
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})");
Links
- Documentation: getting started, sending, configuration, observability, errors, webhooks, reporting, archive, account management and SMS.
- API coverage: every SMTP2GO endpoint and the client member that covers it.
- Changelog, security policy, source and issues.
Licensed under LGPL-3.0-or-later.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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 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. net11.0 is compatible. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 10.0.15)
- Microsoft.Bcl.TimeProvider (>= 10.0.15)
- System.Diagnostics.DiagnosticSource (>= 10.0.15)
- System.Net.Http.Json (>= 10.0.15)
- System.Text.Json (>= 10.0.15)
-
net10.0
- No dependencies.
-
net11.0
- No dependencies.
-
net8.0
- System.Text.Json (>= 10.0.15)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Scott.Mail.Smtp2Go:
| Package | Downloads |
|---|---|
|
Scott.Mail.Smtp2Go.DependencyInjection
.NET (net10.0 and net11.0) Microsoft.Extensions.DependencyInjection integration for Scott.Mail.Smtp2Go: AddSmtp2Go, options binding and validation, resilience pipeline, named clients. |
|
|
Scott.Mail.Smtp2Go.AspNetCore
.NET (net10.0 and net11.0) ASP.NET Core integration for Scott.Mail.Smtp2Go: MapSmtp2GoWebhook endpoint, callback authentication, source-IP allow-list and typed event dispatch. |
GitHub repositories
This package is not used by any popular GitHub repositories.