@using BTCPayServer.HostedServices.Webhooks @using Microsoft.AspNetCore.Mvc.TagHelpers @using BTCPayServer.Client @using BTCPayServer.Abstractions.TagHelpers @model BTCPayServer.Controllers.UIStoresController.StoreEmailRuleViewModel @inject WebhookSender WebhookSender @{ var storeId = Context.GetStoreData().Id; ViewData.SetActivePage(StoreNavPages.Emails, "Email Rules", storeId); } @section PageHeadContent { }

Email rules allow BTCPay Server to send customized emails from your store based on events.

@if (!ViewContext.ModelState.IsValid) {
} @if (Model.Rules.Any()) {
    @for (var index = 0; index < Model.Rules.Count; index++) { }
} else {

There are no rules yet.

}
@section PageFootContent { }