PosInformatique.Foundations.Emailing.Azure
1.0.0
Prefix Reserved
See the version list below for details.
dotnet add package PosInformatique.Foundations.Emailing.Azure --version 1.0.0
NuGet\Install-Package PosInformatique.Foundations.Emailing.Azure -Version 1.0.0
<PackageReference Include="PosInformatique.Foundations.Emailing.Azure" Version="1.0.0" />
<PackageVersion Include="PosInformatique.Foundations.Emailing.Azure" Version="1.0.0" />
<PackageReference Include="PosInformatique.Foundations.Emailing.Azure" />
paket add PosInformatique.Foundations.Emailing.Azure --version 1.0.0
#r "nuget: PosInformatique.Foundations.Emailing.Azure, 1.0.0"
#:package PosInformatique.Foundations.Emailing.Azure@1.0.0
#addin nuget:?package=PosInformatique.Foundations.Emailing.Azure&version=1.0.0
#tool nuget:?package=PosInformatique.Foundations.Emailing.Azure&version=1.0.0
PosInformatique.Foundations.Emailing.Azure
Introduction
PosInformatique.Foundations.Emailing.Azure provides an IEmailProvider
implementation for PosInformatique.Foundations.Emailing
based on the EmailClient from Azure.Communication.Email.
It allows you to send templated emails (created via IEmailManager) using Azure Communication Service.
Install
You can install the package from NuGet:
dotnet add package PosInformatique.Foundations.Emailing.Azure
Features
IEmailProviderimplementation using Azure.Communication.Email.EmailClient.- Simple configuration through
AddEmailing().UseAzureCommunicationService(...). - Supports configuration via:
- Azure Communication Service connection string, or
- Azure Communication Service endpoint URI.
- Callback to configure
EmailClient/EmailClientOptions:- Authentication (managed identity, connection string, etc.).
- Retry policy, logging, diagnostics, and other Azure client options.
Basic configuration
Using connection string
using Microsoft.Extensions.DependencyInjection;
using PosInformatique.Foundations.EmailAddresses;
var services = new ServiceCollection();
// Your ACS connection string
var acsConnectionString = configuration["AzureCommunicationService:ConnectionString"];
services
.AddEmailing(options =>
{
options.SenderEmailAddress = EmailAddress.Parse("no-reply@myapp.com");
// Register your templates here...
// options.RegisterTemplate(EmailTemplateIdentifiers.Invitation, invitationTemplate);
})
.UseAzureCommunicationService(acsConnectionString);
Using endpoint URI and Azure identity (managed identity)
You can also configure the provider using the ACS endpoint URI, and configure authentication
(for example with managed identity) and client options using the clientBuilder parameter.
using Azure.Communication.Email;
using Azure.Identity;
using Microsoft.Extensions.Azure;
using Microsoft.Extensions.DependencyInjection;
var services = new ServiceCollection();
var acsEndpoint = new Uri(configuration["AzureCommunicationService:Endpoint"]);
services
.AddEmailing(options =>
{
options.SenderEmailAddress = EmailAddress.Parse("no-reply@myapp.com");
// Register your templates here...
})
.UseAzureCommunicationService(
acsEndpoint,
clientBuilder =>
{
// Configure EmailClient and EmailClientOptions here
clientBuilder.ConfigureOptions((EmailClientOptions options) =>
{
// Example: configure retry, diagnostics, etc.
options.Retry.MaxRetries = 5;
});
// Example: use managed identity for authentication
clientBuilder.WithCredential(new DefaultAzureCredential());
});
Typical usage end-to-end
- Configure emailing and templates with
AddEmailing(...). - Configure the Azure provider using
UseAzureCommunicationService(...). - Inject
IEmailManagerand create an email from a template identifier. - Add recipients and models.
- Call
SendAsync(...)to send via Azure Communication Service.
Links
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Azure.Communication.Email (>= 1.0.0)
- Microsoft.Extensions.Azure (>= 1.7.2)
- PosInformatique.Foundations.Emailing (>= 1.0.0)
-
net9.0
- Azure.Communication.Email (>= 1.0.0)
- Microsoft.Extensions.Azure (>= 1.7.2)
- PosInformatique.Foundations.Emailing (>= 1.0.0)
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.1.0-rc.2 | 52 | 1/26/2026 |
| 1.1.0-rc.1 | 65 | 1/23/2026 |
| 1.0.0 | 469 | 11/19/2025 |
| 1.0.0-rc.4 | 365 | 11/19/2025 |
| 1.0.0-rc.3 | 376 | 11/18/2025 |
| 1.0.0-rc.2 | 371 | 11/18/2025 |
| 1.0.0-rc.1 | 371 | 11/18/2025 |
1.0.0
- Initial release with Azure Communication Service Emailing provider.