Render25 1.0.1

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

Render25 .NET / C# SDK

The official .NET client library for the Render25 transactional email platform.

NuGet License: MIT

Installation

Install via NuGet Package Manager:

dotnet add package Render25

Or via Package Manager Console:

Install-Package Render25

Quickstart

using Render25;

// Automatically reads RENDER25_API_KEY from environment variables
var client = new Render25Client();

// Or pass explicitly: var client = new Render25Client("re_live_...");

var response = await client.Emails.SendAsync(new SendEmailOptions
{
    From = "support@yourdomain.com",
    To = new List<string> { "customer@example.com" },
    Subject = "Welcome to Render25!",
    Html = "<h1>Welcome aboard!</h1><p>Transactional email sent via .NET.</p>",
    Text = "Welcome aboard! Transactional email sent via .NET."
});

Console.WriteLine($"Dispatched Message ID: {response.Id}");

Advanced: CC, BCC, Reply-To & Attachments

using Render25;

var client = new Render25Client();

byte[] pdfBytes = await File.ReadAllBytesAsync("invoice.pdf");

var response = await client.Emails.SendAsync(new SendEmailOptions
{
    From = "support@yourdomain.com",
    To = new List<string> { "client@example.com" },
    Cc = new List<string> { "accounting@example.com" },
    Bcc = new List<string> { "archive@example.com" },
    ReplyTo = "helpdesk@yourdomain.com",
    Subject = "Your Invoice #1042",
    Html = "<p>Please find your receipt and statement attached.</p>",
    Attachments = new List<Attachment>
    {
        Attachment.FromBytes("invoice_1042.pdf", pdfBytes, "application/pdf")
    }
});

Console.WriteLine($"Message ID: {response.Id}");

ASP.NET Core Dependency Injection

In Program.cs:

builder.Services.AddSingleton(new Render25Client(builder.Configuration["Render25:ApiKey"]));

In your controller or Minimal API endpoint:

app.MapPost("/api/send-receipt", async (Render25Client render25, OrderDto order) =>
{
    var res = await render25.Emails.SendAsync(new SendEmailOptions
    {
        From = "billing@yourdomain.com",
        To = new List<string> { order.CustomerEmail },
        Subject = $"Order #{order.Id} Receipt",
        Html = $"<p>Thank you for your order of ${order.TotalAmount}.</p>"
    });

    return Results.Ok(new { success = true, id = res.Id });
});

License

MIT © Render25

There are no supported framework assets in this 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
1.0.1 132 8/12/2026
1.0.0 127 8/12/2026

Initial release of Render25 .NET / C# SDK.