Resend.FluentEmail 0.1.0

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

resend sender for FluentEmail

CI NuGet License: MIT

Send emails using FluentEmail .NET API, using Resend as the underlying sender.

Functionality

The Resend sender supports the following features:

  • Display name in From, To, Cc, Bcc, and ReplyTo addresses
  • HTML and non-HTML bodies
  • Priority enumerate
  • Headers
  • Tags
  • Attachments

Installing via NuGet

Package is published in the NuGet gallery.

From the command-line:

> dotnet add package Resend.FluentEmail

From within Visual Studio using Package Manager Console:

PM> Install-Package Resend.FluentEmail

Getting started

In the startup of your application, configure the DI container as follows:

using FluentEmail.Core.Interfaces;
using Resend;
using Resend.FluentEmail;

builder.Services.AddOptions();
builder.Services.AddHttpClient<ResendClient>();
builder.Services.Configure<ResendClientOptions>( o =>
{
    o.ApiToken = Environment.GetEnvironmentVariable( "RESEND_APITOKEN" )!;
} );
builder.Services.AddTransient<IResend, ResendClient>();
builder.Services.AddTransient<ISender, ResendSender>();

Send the email in the FluentEmail way, using the injected ISender:

using FluentEmail.Core.Interfaces;

public class FeatureImplementation
{
    private readonly ISender _sender;


    public FeatureImplementation( ISender sender )
    {
        _sender_ = sender;
    }


    public Task Execute()
    {
        var email = Email
            .From( "onboarding@resend.dev" )
            .To( "myapp@example.com" )
            .Subject( "Hello!" )
            .Body( "<div><strong>Greetings<strong> 👋🏻 from .NET</div>", true )
            .PlaintextAlternativeBody( "Greetigs from .NET" );

        email.Sender = _sender;
        var response = await email.SendAsync();
    }
}
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. 
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
0.1.0 458 3/25/2025
0.0.13 203 2/4/2025