EnvelopeFlow.Providers.Email.AzureCommunicationServices
0.1.0-alpha.3.1
dotnet add package EnvelopeFlow.Providers.Email.AzureCommunicationServices --version 0.1.0-alpha.3.1
NuGet\Install-Package EnvelopeFlow.Providers.Email.AzureCommunicationServices -Version 0.1.0-alpha.3.1
<PackageReference Include="EnvelopeFlow.Providers.Email.AzureCommunicationServices" Version="0.1.0-alpha.3.1" />
<PackageVersion Include="EnvelopeFlow.Providers.Email.AzureCommunicationServices" Version="0.1.0-alpha.3.1" />
<PackageReference Include="EnvelopeFlow.Providers.Email.AzureCommunicationServices" />
paket add EnvelopeFlow.Providers.Email.AzureCommunicationServices --version 0.1.0-alpha.3.1
#r "nuget: EnvelopeFlow.Providers.Email.AzureCommunicationServices, 0.1.0-alpha.3.1"
#:package EnvelopeFlow.Providers.Email.AzureCommunicationServices@0.1.0-alpha.3.1
#addin nuget:?package=EnvelopeFlow.Providers.Email.AzureCommunicationServices&version=0.1.0-alpha.3.1&prerelease
#tool nuget:?package=EnvelopeFlow.Providers.Email.AzureCommunicationServices&version=0.1.0-alpha.3.1&prerelease
EnvelopeFlow.Providers.Email.AzureCommunicationServices
Optional ACS Email REST IEmailTransport and authenticated Event Grid event-schema normalization. Existing SMTP and Mailgun/SES packages keep their behavior.
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 AzureEmailTransport(new()
{ ResourceEndpoint = resourceOrigin, AccessKey = applicationAccessKey });
var result = await transport.SendAsync(message, cancellationToken);
The configured origin must be an exact public-cloud https://<resource>.communication.azure.com resource with no credentials, custom port, path, query or fragment. The default client pins that host, requires public DNS answers and disables redirects, proxies and cookies. A custom handler is a trusted override owned/disposed by the transport and must not redirect or retry. Applications configure resource/domain credentials and sender identities; sovereign/private endpoints need another explicit adapter and are not silently allowed. Reuse the transport; dispose after active operations finish.
The adapter signs exact JSON bytes using the documented ACS HMAC headers and submits one 2023-03-31 request. An optional frozen EmailSubmissionContext produces a deterministic customer Operation-Id; the acknowledgment must match it. Accepted carries the provider operation/message UUID and means queued by ACS. There is no polling of returned URLs, automatic retry or claim of permanent deduplication. Malformed acceptance, interrupted I/O and server failures remain Unknown; definite 429 refusal can carry bounded valid RetryAfter. The request bound is at most 10 MB with 50 combined recipients, 10 reply-to addresses and 100 headers/attachments. Bcc remains private envelope metadata. ACS cannot represent per-message sender display names through senderAddress, so those are explicitly rejected. Duplicate/protected headers and CRLF fail before I/O.
Event Grid uses application authentication rather than a per-event body signature. Configure Microsoft Entra protected webhook delivery and JWT middleware that validates token signature, issuer, audience, lifetime and authorized Event Grid caller. Never build a principal by decoding an unverified token. Construct AzureEmailEventWebhook from trusted full scope/account, exact ACS resource ID and expected issuer/tenant/audience/client ID. From the same actual HTTPS request, call BindAuthenticatedRequest(authenticatedPrincipal, trustedExternalUri, rawBytes). It checks the configured claims and returns a non-deserializable proof bound to scope/account/resource and SHA256 of those exact bytes, expiring within five minutes or token expiry. TranslateAuthenticatedAsync(rawBytes, proof, ct) refuses another body/scope/account/resource. Supply unmapped JWT iss, tid, aud, azp/appid and exp claims; middleware remains responsible for cryptographic token validation and authorization. No boolean supplied by a client authenticates a callback.
Acceptance JSON must have unique property names. Duplicate operation-ID fields, including escaped aliases, return Unknown with review required before retry rather than selecting an arbitrary provider correlation.
At most 100 event-schema records/1 MiB/depth 32 are translated. Delivery status Bounced is hard; Delivered is receiving-server handoff. Suppressed/Failed/FilteredSpam/Quarantined remain operational failures and never become user complaints or inferred hard bounces. Expanded is not proof of member delivery. Engagement lacks a recipient: an optional trusted full-scope/account/message lookup must resolve one immutable destination, otherwise Uncorrelated. Opens/clicks are observations, not human-reading or consent proof. Event Grid handshake, other topics and unsupported schemas produce no events. Applications own subscription validation and routes.
Only process Verified results. Preserve provider event/message IDs and exact candidates through optional Inbound/Feedback/Reporting stores; keep immutable trusted mappings and durable receipt deduplication. Acknowledge only after committed intake/effects. The provider helper does not change policy or assign address ownership.
Protocol references: Email Send, HMAC, email event schema/statuses, secure Entra webhook delivery.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- EnvelopeFlow.Email.Abstractions (>= 0.1.0-alpha.3.1)
- EnvelopeFlow.Inbound.Abstractions (>= 0.1.0-alpha.3.1)
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 | 46 | 11/22/2026 |
| 0.1.0-alpha.2.1 | 58 | 11/9/2026 |