Duta.Net 0.1.5

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

Duta .NET SDK

Official .NET client for Duta. Targets .NET 8.

Install

dotnet add package Duta.Net

Quickstart

using Duta;

var duta = new DutaClient("duta_live_xxx");

var result = await duta.Emails.SendAsync(new SendEmailOptions
{
    From = "hello@yourdomain.com",
    To = new[] { "user@example.com" },
    Subject = "Welcome to Duta",
    Html = "<p>Thanks for signing up!</p>",
});

Console.WriteLine($"Sent: {result.Id}");

Get an API key from the dashboard. The sender domain must be verified first.

Error handling

Methods throw DutaException on failure:

try
{
    await duta.Emails.SendAsync(options);
}
catch (DutaException e)
{
    Console.WriteLine($"{e.StatusCode} {e.Name}: {e.Message}");
    // e.Name: authentication_error | permission_denied | rate_limit_exceeded | ...
}

API

new DutaClient(string apiKey, string baseUrl = ..., HttpClient? httpClient = null)

Pass your own HttpClient to reuse a shared instance (recommended in long-running apps).

await duta.Emails.SendAsync(SendEmailOptions options)

Returns SendEmailResult with Id and Status.

await duta.Emails.GetAsync(string id)

Retrieve one email. Requires a full-access API key.

await duta.Emails.ListAsync(int page = 1, int limit = 20)

List emails, newest first. Requires a full-access API key.

License

MIT

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 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.
  • net8.0

    • No dependencies.

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
0.1.5 105 6/15/2026
0.1.0 108 6/14/2026