Table of Contents

Class AzureCSEmailProvider

Namespace
MailForge.AzureCS
Assembly
MailForge.AzureCS.dll

Delivers email through the Azure Communication Services Email REST API (see https://learn.microsoft.com/azure/communication-services/quickstarts/email) using HttpClient with HMAC-SHA256 signed headers (no Azure SDK dependency).

public sealed class AzureCSEmailProvider : IEmailProvider
Inheritance
AzureCSEmailProvider
Implements
Inherited Members

Constructors

AzureCSEmailProvider(AzureCSOptions)

Creates the provider from Azure communication services options.

public AzureCSEmailProvider(AzureCSOptions options)

Parameters

options AzureCSOptions

Properties

Capabilities

The capabilities descriptor. SupportsInlineImages is true: inline images (cid: references) are rewritten as data: URIs in the HTML body since ACS has no cid: attachment mechanism.

public ProviderCapabilities Capabilities { get; }

Property Value

ProviderCapabilities

Name

The provider display name.

public string Name { get; }

Property Value

string

Methods

SendAsync(EmailMessage, CancellationToken)

Transmits a message through the Azure Communication Services Email API.

public Task<ProviderDeliveryResult> SendAsync(EmailMessage message, CancellationToken cancellationToken = default)

Parameters

message EmailMessage
cancellationToken CancellationToken

Returns

Task<ProviderDeliveryResult>