EnvelopeFlow.Providers.Email.Resend 0.1.0-alpha.3.1

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

EnvelopeFlow.Providers.Email.Resend

Optional IEmailTransport for Resend's Email API plus raw-body Svix webhook verification. Existing SMTP and Mailgun/SES packages remain independently optional and unchanged.

MaximumRequestBytes limits the complete encoded JSON request, including escaped text, envelope fields and base64 attachments. A strict UTF-8/content lower bound rejects clearly oversized or malformed input early; bounded serialization enforces the actual wire size. The smallest configurable cap is 1,024 bytes.

using var transport = new ResendEmailTransport(new() { ApiKey = applicationSecret });
var result = await transport.SendAsync(message, cancellationToken);

Applications configure API keys, verified domains, credentials and HTTP endpoints. The default client only connects to the exact public HTTPS provider host and disables redirects, proxies and cookies. A custom handler is a trusted override owned/disposed by the transport; configure it without retries or redirects. Reuse the transport, disposing after outstanding sends finish.

The adapter sends one JSON request and requires a successful response with the exact email UUID. Bcc stays in provider-private envelope metadata. Text/HTML, reply-to, unique unprotected custom headers and inline attachments are supported; remote URLs and provider templates/scheduling are not substituted for EnvelopeFlow composition. Limits default to 10 MB, configurable up to 40 MB, with at most 50 combined recipients, 10 reply-to addresses and 100 headers/attachments. Oversized payloads, duplicate/protected headers and CRLF fail before I/O. Definite 429 responses may carry bounded valid RetryAfter; malformed success, interrupted I/O or server errors return Unknown with review required. There is no automatic retry.

Freeze an optional EmailSubmissionContext(opaqueStableKey) with the admitted message to supply Idempotency-Key. The same key must refer to the same immutable payload and destinations. Resend's provider deduplication expires after 24 hours; this does not make replay of an Unknown submission safe indefinitely. Legacy messages without context omit the added serialized property and idempotency header.

Acceptance JSON must have unique property names. Duplicate message-ID fields, including escaped aliases, return Unknown with review required before retry rather than selecting an arbitrary provider correlation.

ResendEventWebhook(scope, account, signingSecret, clock?) uses the endpoint's configured whsec_ secret. VerifyAndTranslate(rawBytes, svixId, timestamp, svixSignatures, ct) verifies SHA256 HMAC over the exact original id.timestamp.body and accepts bounded v1 rotation signatures in constant time before parsing. The signed attempt timestamp defaults to five-minute tolerance, configurable from one second to one day. Bodies are at most 1 MiB; JSON depth is at most 32. Wrong/tampered/expired callbacks produce no normalized events.

Sent/delivered/failed/suppressed, bounce, temporary delivery delay, complaint, open and click produce bounded InboundEvent observations. A bounce requires its signed data.bounce.type: only exact Permanent proves a hard bounce, Transient is soft, and Undetermined or an unrecognized type remains undetermined. Missing or malformed classification rejects the payload. Soft and undetermined observations never disable a destination. A callback must contain exactly one recipient: a multi-recipient data.to does not prove which destination caused a bounce/complaint and returns AmbiguousRecipient without effects. Send separately when exact recipient feedback is required. IDs use immutable signed svix-id and data.email_id; never the RFC mail header ID. Keep trusted full-scope/account/message/exact-candidate mappings for Feedback/Reporting. Only process Verified; acknowledge after the selected durable receipt/effects commit. Opens/clicks are observations and never consent grants. This package does not host endpoints or directly change policy.

Protocol references: send and idempotency, webhook verification, Svix signed format, event semantics, typed bounce contract, bounce classifications, attachment wire fields.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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-alpha.3.1 41 11/22/2026
0.1.0-alpha.2.1 67 11/9/2026