Resend 0.0.13
dotnet add package Resend --version 0.0.13
NuGet\Install-Package Resend -Version 0.0.13
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="Resend" Version="0.0.13" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Resend --version 0.0.13
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Resend, 0.0.13"
#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.
// Install Resend as a Cake Addin #addin nuget:?package=Resend&version=0.0.13 // Install Resend as a Cake Tool #tool nuget:?package=Resend&version=0.0.13
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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, 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.Extensions.Options (>= 8.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Resend:
Package | Downloads |
---|---|
Resend.Webhooks
ASP.NET utilities for Resend Webhook events |
|
Resend.FluentEmail
Send emails via Resend using their API |
GitHub repositories
This package is not used by any popular GitHub repositories.