Configures Azure Communication Services email delivery in Orchard Core. Covers AzureEmailSettings, AzureEmailProvider, DefaultAzureEmailOptions, encrypted connection strings, secret references, provider selection, recipes, and IEmailService integration.
Ships in orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
OrchardCore.Email.Azure provides Azure Communication Services (ACS) delivery
on top of the provider-neutral OrchardCore.Email API (see
orchardcore-email).
AzureEmailProvider, technical name Azure, edited
on the Azure Communication Services tab of Settings → Communication →
Email.DefaultAzureEmailProvider, technical
name DefaultAzure, bound from OrchardCore:Email:Azure.IEmailService and can therefore remain
independent of the chosen provider.DefaultAzure)DefaultAzureEmailOptions is enabled only when both DefaultSender and
ConnectionString are set. It cannot be edited in the admin UI.
{
"OrchardCore": {
"Email": {
"Azure": {
"DefaultSender": "[email protected]",
"ConnectionString": "endpoint=https://your-resource.communication.azure.com/;accesskey=..."
}
}
}
}
Keep the connection string out of committed files: use
OrchardCore__Email__Azure__ConnectionString or a key vault. In 4.0 a nonblank
ConnectionString here logs a LegacySecretConfiguration warning (event
8100). DefaultAzureEmailOptions can't reference a secret; to keep the
connection string in the Secrets module, use the tenant Azure provider.
{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Email",
"OrchardCore.Email.Azure"
]
},
{
"name": "Settings",
"EmailSettings": {
"DefaultProviderName": "DefaultAzure"
}
}
]
}
Azure)AzureEmailSettings property | Description |
|---|---|
IsEnabled | Enables the tenant provider. |
DefaultSender | Verified ACS sender address. Required. |
ConnectionString | ACS connection string. Required unless a secret is referenced. Stored encrypted with Data Protection. |
ConnectionStringSecretName | 4.0. Name of a TextSecret holding the connection string; takes precedence over ConnectionString. |
The admin UI encrypts the connection string before saving it, and
AzureEmailOptionsConfiguration decrypts it. Enter it in the admin UI; a plain
connection string imported by a Settings recipe step cannot be decrypted.
With the OrchardCore.Secrets feature enabled, the connection string editor
(<secret-input>) offers Use a secret: pick or create a TextSecret
(suggested name AzureEmail.ConnectionString), and the protected value is
cleared on save. A saved connection string can be moved without retyping it
from Tools → Security → Migrate Secrets. A recipe can create the secret
with the Secrets step (value from the OrchardCore__Secrets__AzureEmail.ConnectionString
environment variable) and set "ConnectionStringSecretName": "AzureEmail.ConnectionString"
in AzureEmailSettings. See orchardcore-secrets. When
the tenant provider is the only one enabled it becomes the default
automatically; disabling it clears the default if it was selected.
using OrchardCore.Email;
using OrchardCore.Infrastructure;
namespace MyModule;
public sealed class WelcomeEmailService
{
private readonly IEmailService _emailService;
public WelcomeEmailService(IEmailService emailService)
{
_emailService = emailService;
}
public Task<Result> SendAsync(string recipient, CancellationToken cancellationToken = default)
{
return _emailService.SendAsync(new MailMessage
{
To = recipient,
Subject = "Welcome",
TextBody = "Welcome to the site.",
}, cancellationToken: cancellationToken);
}
}
Attachments must use an ACS-supported file extension; other attachments make the send fail with an error result.
AzureEmailOptions participates in the signal-backed options refresh: saving
the settings invalidates AzureEmailOptions, EmailProviderOptions, and
EmailOptions after the YesSql session commits, and every node rebuilds them.
Inject IOptionsMonitor<AzureEmailOptions> and read CurrentValue.
AzureEmailProviderBase<TOptions> (TOptions : AzureEmailOptions) reuses one
EmailClient until the current connection string changes. Derive from it to add
another ACS-backed provider:
using Microsoft.Extensions.Localization;
using Microsoft.Extensions.Options;
using OrchardCore.Email.Azure.Models;
using OrchardCore.Email.Azure.Services;
namespace MyModule;
public sealed class TransactionalAzureEmailOptions : AzureEmailOptions;
public sealed class TransactionalAzureEmailProvider : AzureEmailProviderBase<TransactionalAzureEmailOptions>
{
public const string TechnicalName = "TransactionalAzure";
public TransactionalAzureEmailProvider(
IOptionsMonitor<TransactionalAzureEmailOptions> options,
ILogger<TransactionalAzureEmailProvider> logger,
IStringLocalizer<TransactionalAzureEmailProvider> stringLocalizer)
: base(options, logger, stringLocalizer)
{
}
public override LocalizedString DisplayName => S["Transactional Azure Communication Services"];
}
Configure TransactionalAzureEmailOptions (set IsEnabled, DefaultSender,
and ConnectionString), register the provider with
services.AddEmailProvider<TransactionalAzureEmailProvider>(TransactionalAzureEmailProvider.TechnicalName)
or an IConfigureOptions<EmailProviderOptions>, and reference the
OrchardCore.Email.Azure package from that module.
Use Tools → Testing → Email Test to test an enabled provider. Confirm the sender identity, service restrictions, and quota in Azure before production use.
OrchardCore_Email_Azure and OrchardCore_Email_AzureCommunicationServices
sections → OrchardCore:Email:Azure (old names still bind but are
deprecated).IOptions<AzureEmailOptions> → IOptionsMonitor<AzureEmailOptions>.CurrentValue.class MyProvider : AzureEmailProviderBase with a Func<AzureEmailOptions>
constructor argument → AzureEmailProviderBase<TOptions> with
IOptionsMonitor<TOptions>.AzureEmailSettings.ConnectionString directly must also honor
ConnectionStringSecretName (read IOptionsMonitor<AzureEmailOptions>
or call IServiceProvider.GetSecretValueAsync()).OrchardCore:Email:Azure:ConnectionString still works but logs
LegacySecretConfiguration.What SKILL.md sets; muted values are Claude Code's defaults
/orchardcore:orchardcore-email-azurefrom orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin orchardcore140 skills in this plugin
/orchardcore-adminGuidance for the Orchard Core admin panel, including admin controllers and routes, admin menu registration with AdminNavigationProvider, ocat editor forms grouped in cards, admin pages rendering Model.Editor, the UI text casing standard, TheAdmin layout and menu colors, admin branding, the Navbar shape, the Ctrl+K quick navigation palette and QuickNavigationSource, AdminSettings such as MenuBehavior, ShowBreadcrumb, DisplayQuickNavigation, DisplayTitlesInTopbar and ActionsLayout, the AdminDashboard shape, settings pages, and admin filters and zones. Use this skill when requests mention the Orchard Core admin panel, TheAdmin, admin controllers, admin menu registration, an icon on an admin menu item, the AdminSettings recipe step, quick navigation, navigation menu behavior, the admin URL prefix, UI text casing. Strong matches include OrchardCore.Admin, AdminSettings, AdminPermissions, AdminOptions, AdminAttribute, SiteDisplayDriver, IDisplayManager./orchardcore-admin-dashboardSkill for creating admin dashboard widgets in Orchard Core. Covers the DashboardWidget stereotype, DashboardPart position and sizing, the built-in HtmlDashboardWidget, ContentsMetadata and ContentsTags widget types, custom widget content types via recipe or migration, arranging widgets in Manage Dashboard mode, widget template customization, provisioning widgets with recipes, dashboard permissions, the DashboardBreadcrumbProvider Dashboard ancestor, and the AdminDashboardContent shape used when the feature is disabled. Use this skill when requests mention Orchard Core Admin Dashboard, Create and Configure Dashboard Widgets, Enabling Admin Dashboard, Widget Configuration Properties, dashboard widget recipes, Dashboard breadcrumb, or related implementation, setup, or troubleshooting work. Strong matches include OrchardCore.AdminDashboard, DashboardPart, DashboardBreadcrumbProvider, AccessAdminDashboard, ManageAdminDashboard.Other plugins' skills for the same job