Sends or queues email in ABP via IEmailSender with MailKit, supporting CC, attachments, and render-then-send workflows.
Ships in abp-runtime. 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.
ABP's emailing system sends content through the provider-independent IEmailSender; MailKit is the recommended SMTP provider. Producing the body (from a template) is a separate concern — the render-text-templates skill — and a common flow is to render a body then send it here.
All APIs below are from Volo.Abp.Emailing (+ Volo.Abp.MailKit).
IEmailSender, including a from, CC, and attachments.StandardEmailTemplates.Message).TemplateDefinitionProvider, ITemplateRenderer, Scriban/Razor, layouts) — use the render-text-templates skill.QueueAsync).Inject IEmailSender and call SendAsync (source: https://github.com/abpframework/abp/blob/rel-10.5/framework/src/Volo.Abp.Emailing/Volo/Abp/Emailing/IEmailSender.cs). isBodyHtml defaults to true.
using Volo.Abp.Emailing;
await _emailSender.SendAsync(
"[email protected]", // to
"Email subject", // subject
body); // body (HTML by default)
Overloads add a from address, accept a raw System.Net.Mail.MailMessage, or take AdditionalEmailSendingArgs for CC, Attachments (List<EmailAttachment>), and ExtraProperties.
Render the body with the render-text-templates skill, then send it here:
using Volo.Abp.Emailing.Templates; // StandardEmailTemplates
var body = await _templateRenderer.RenderAsync(
StandardEmailTemplates.Message, // built-in "Abp.StandardEmailTemplates.Message"
new { message = "This is the email body..." });
await _emailSender.SendAsync("[email protected]", "Email subject", body);
StandardEmailTemplates.Message and StandardEmailTemplates.Layout are built-in templates you can override through the Virtual File System (paths /Volo/Abp/Emailing/Templates/Message.tpl and Layout.tpl).
Install Volo.Abp.MailKit (abp add-package Volo.Abp.MailKit) and depend on AbpMailKitModule. Your code keeps using IEmailSender unchanged — MailKit just replaces the underlying SMTP sender. Configure AbpMailKitOptions.SecureSocketOption when the SMTP server needs a specific TLS mode:
Configure<AbpMailKitOptions>(options =>
{
options.SecureSocketOption = SecureSocketOptions.SslOnConnect;
});
SMTP host/port/credentials come from the standard email settings (Abp.Mailing.Smtp.*), set via the Setting Management UI, ISettingManager, or appsettings.json under "Settings". Keep the SMTP password out of source control — prefer the Setting Management UI or a secret store / environment variable over committing it.
To avoid blocking the request, call QueueAsync instead of SendAsync. It takes the same arguments and enqueues the send onto the background job system, which brings automatic retries for transient SMTP failures:
await _emailSender.QueueAsync("[email protected]", "Email subject", body);
Runtime caveat: QueueAsync only enqueues when a background job manager is available (IBackgroundJobManager.IsAvailable()). If none is registered, it silently falls back to sending synchronously on the calling thread — so don't assume queuing always defers the send.
NullEmailSender rather than expecting real delivery.Abp.Mailing.Smtp.* settings resolve and, if using MailKit, that AbpMailKitModule is depended on and the SMTP handshake succeeds.NullEmailSender (logs instead of sending), so no real emails go out during development.IEmailSender over provider-specific senders (ISmtpEmailSender, IMailKitSmtpEmailSender) to keep code provider-independent.Abp.Mailing.Smtp.Password is an encrypted setting (isEncrypted: true). A plaintext value set from appsettings.json is still read correctly by default — decryption fails and AbpSettingOptions.ReturnOriginalValueIfDecryptFailed (default true) returns the original value, logging a decrypt warning. Encrypting it via ISettingEncryptionService.Encrypt is recommended (and required if you set ReturnOriginalValueIfDecryptFailed = false), not a hard prerequisite for it to work.IEmailSender has no template overload — the body argument is the final content. StandardEmailTemplates.Message is a template name to hand to ITemplateRenderer.RenderAsync (step 2); passing it straight to SendAsync emails the literal string Abp.StandardEmailTemplates.Message. This skill takes an already-rendered body; defining/rendering it is the render-text-templates skill.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/abp-runtime:send-emailsfrom abp-runtime
npx claudepluginhub abpframework/abp-skills --plugin abp-runtime10 skills in this plugin
/background-jobs-and-eventsIn-process/cross-service events, entity change reactions, deferred/recurring background work. USE FOR: ILocalEventBus / IDistributedEventBus, EntityCreated/Updated/DeletedEventData, [EventName] ETOs, IBackgroundJobManager jobs, AsyncPeriodicBackgroundWorkerBase workers. DO NOT USE FOR: distributed cache/lock (distributed-caching-and-locking); SignalR push (add-signalr-realtime); microservice message contracts (design-module-and-service-communication)./cache-entitiesRead-only single-entity-by-id caching via the generic IEntityCache abstraction (cache to the entity or a DTO), auto-invalidated. USE FOR: AddEntityCache, caching to entity or DTO, batch lookups (FindMany/GetMany), expiration, EntityCacheWithObjectMapper mapping. DO NOT USE FOR: general key/value caching or distributed locks (distributed-caching-and-locking); querying/persisting entities (ef-core-integration or mongodb-integration)./configure-app-urlsNamed application roots and external URLs with AppUrlOptions, resolved tenant-aware via IAppUrlProvider. USE FOR: AppUrlOptions.Applications; RootUrl and named Urls; email links; cross-application links; tenantId and tenantName placeholders; redirect allow-list checks. DO NOT USE FOR: rendering the email body (render-text-templates) or sending it (send-emails); remote service base addresses (consume-remote-services); resolving tenants by domain (configure-multi-tenancy)./configure-production-hostingRelease checklist for hosting an ABP app in production behind a reverse proxy or clustered. USE FOR: forwarded headers, shared Data Protection keys, cluster cache/lock, single/multi-instance jobs/workers, SignalR scale-out, shared KeyPrefix. DO NOT USE FOR: the cache/lock APIs (distributed-caching-and-locking); job/worker mechanics (background-jobs-and-events); SignalR hubs (add-signalr-realtime); OpenIddict prod certs (configure-openiddict-authentication)./distributed-caching-and-lockingTyped distributed caching and cross-instance distributed locking. USE FOR: typed IDistributedCache / GetOrAddAsync (Redis-backed), IAbpDistributedLock.TryAcquireAsync, AbpDistributedCacheOptions / [CacheName]. DO NOT USE FOR: per-entity caching (cache-entities); multi-tier hybrid cache (use-hybrid-caching); events, background jobs, or workers (background-jobs-and-events); settings/features (manage-settings-and-features); data filters (apply-data-filters)./render-text-templatesRender text templates (Scriban or Razor) in ABP. USE FOR: TemplateDefinitionProvider, TemplateDefinition + WithScribanEngine/WithRazorEngine, WithVirtualFilePath content, ITemplateRenderer.RenderAsync, per-culture localization, layouts, the Razor safety boundary. DO NOT USE FOR: sending the rendered body as email (send-emails); embedding .tpl files (manage-virtual-files); localization resources (localize-applications).Other plugins' skills for the same job