LinkSoft.AzureMailing
1.0.2
Prefix Reserved
See the version list below for details.
dotnet add package LinkSoft.AzureMailing --version 1.0.2
NuGet\Install-Package LinkSoft.AzureMailing -Version 1.0.2
<PackageReference Include="LinkSoft.AzureMailing" Version="1.0.2" />
paket add LinkSoft.AzureMailing --version 1.0.2
#r "nuget: LinkSoft.AzureMailing, 1.0.2"
// Install LinkSoft.AzureMailing as a Cake Addin #addin nuget:?package=LinkSoft.AzureMailing&version=1.0.2 // Install LinkSoft.AzureMailing as a Cake Tool #tool nuget:?package=LinkSoft.AzureMailing&version=1.0.2
The purpose of this package is to create an implementation of Azure email sender using Azure Communication Services. See official documentation for more information on proper configuration and implementation.
By default, the package reads the connection string from appsettings.json:
...
"ConnectionStrings": {
"Mailing": "<your-connection-string>"
}
...
Usage:
var configuration = new AzureEmailSenderConfiguration();
var sender = new AzureEmailSender(configuration);
var content = new EmailContent("Hello world!");
content.PlainText = "Hello world message!";
var message = new EmailMessage(
senderAddress: "me@linksoft.cz",
recipientAddress: "you@linksoft.cz",
content: content);
await sender.SendEmailAsync(message);
If you wish to change the source of the connection string, create your own implementation of the IAzureEmailSenderConfiguration interface:
namespace LinkSoft.AzureMailing;
public class MyAzureEmailSenderConfiguration(IConfiguration _configuration) : IAzureEmailSenderConfiguration
{
public string? AzureEmailSenderConnectionString => "MyConnectionStringSource";
}
This package is a part of larger set of packages for LinkSoft Technologies shared open source repository.
You can find the repository on GitHub.
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 was computed. 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. |
-
net8.0
- LinkSoft.AzureMailing.Abstractions (>= 1.0.2)
- Microsoft.Extensions.Configuration (>= 9.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on LinkSoft.AzureMailing:
Package | Downloads |
---|---|
LinkSoft.Abp.AzureMailing.Abstractions
This is the abstractions module for LinkSoft.Abp.AzureMailing module |
GitHub repositories
This package is not used by any popular GitHub repositories.
Added a set of properties to the project file.