Resend 0.1.2
See the version list below for details.
dotnet add package Resend --version 0.1.2
NuGet\Install-Package Resend -Version 0.1.2
<PackageReference Include="Resend" Version="0.1.2" />
<PackageVersion Include="Resend" Version="0.1.2" />
<PackageReference Include="Resend" />
paket add Resend --version 0.1.2
#r "nuget: Resend, 0.1.2"
#addin nuget:?package=Resend&version=0.1.2
#tool nuget:?package=Resend&version=0.1.2
resend
.NET client for Resend, an email API, written in C#.
Functionality
The ResendClient
supports the following objects (and methods):
- Email (Send, Batch, Retrieve, Reschedule, Cancel)
- Domain (List, Add, Retrieve, Update, Verify, Delete)
- API key (List, Create, Delete)
- Audience (List, Add, Retrieve, Delete)
- Contact (List, Add, Retrieve, Update, Delete)
- Broadcast (List, Add, Retrieve, Update, Send, Schedule, Delete)
Installing via NuGet
Package is published in the NuGet gallery.
From the command-line:
> dotnet add package Resend
From within Visual Studio using Package Manager Console:
PM> Install-Package Resend
Getting started
In the startup of your application, configure the DI container as follows:
using Resend;
builder.Services.AddOptions();
builder.Services.AddHttpClient<ResendClient>();
builder.Services.Configure<ResendClientOptions>( o =>
{
o.ApiToken = Environment.GetEnvironmentVariable( "RESEND_APITOKEN" )!;
} );
builder.Services.AddTransient<IResend, ResendClient>();
Send an email using the injected IResend
instance:
using Resend;
public class FeatureImplementation
{
private readonly IResend _resend;
public FeatureImplementation( IResend resend )
{
_resend = resend;
}
public Task Execute()
{
var message = new EmailMessage();
message.From = "onboarding@resend.dev";
message.To.Add( "myapp@example.com" );
message.Subject = "Hello!";
message.HtmlBody = "<div><strong>Greetings<strong> 👋🏻 from .NET</div>";
await _resend.EmailSendAsync( message );
}
}
Product | Versions 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. |
-
net8.0
- Microsoft.Extensions.Options (>= 8.0.0)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Resend:
Package | Downloads |
---|---|
KernelInfrastructure
Package Description |
|
Resend.Webhooks
ASP.NET utilities for Resend Webhook events |
|
Resend.FluentEmail
Send emails via Resend using their API |
|
DeadLockHub.Infrastructure
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
0.1.4 | 2,401 | 6/10/2025 |
0.1.3 | 900 | 6/5/2025 |
0.1.2 | 4,306 | 5/9/2025 |
0.1.1 | 3,124 | 4/22/2025 |
0.1.0 | 7,616 | 3/25/2025 |
0.0.13 | 6,754 | 2/4/2025 |
0.0.12 | 4,689 | 12/30/2024 |
0.0.11 | 125 | 12/30/2024 |
0.0.10 | 486 | 12/21/2024 |
0.0.9 | 199 | 12/21/2024 |
0.0.8 | 5,322 | 10/28/2024 |
0.0.7 | 22,365 | 3/7/2024 |
0.0.6 | 219 | 3/5/2024 |
0.0.5 | 4,776 | 7/31/2023 |