Azure Communication

Description

Azure Communication Services (ACS) Email can be used as the transactional email provider for Azure-hosted applications. Your application code depends on IFlexEmailProvider.

Configuration in DI

Register only the provider.

services.AddFlexAzureCommunicationEmailProvider(configuration);

appsettings.json

Configuration is read from FlexBase:Providers:Email:AzureCommunication.

{
  "FlexBase": {
    "Providers": {
      "Email": {
        "AzureCommunication": {
          "ConnectionString": "<store-in-secrets>",
          "DefaultFromEmail": "[email protected]",
          "DefaultFromName": "Company",
          "MaxRetries": 3,
          "Timeout": "00:00:30",
          "PollingInterval": "00:00:01"
        }
      }
    }
  }
}

Examples (template-based)

This mirrors the generated PostBus handler shape (you do not register the handler manually).

Provider considerations

  • Ensure ACS Email domain/sender is verified.

  • PollingInterval controls how often send status is checked.

Last updated