@using BTCPayServer.HostedServices.Webhooks @using BTCPayServer.Services @using Microsoft.AspNetCore.Mvc.TagHelpers @model BTCPayServer.Controllers.UIStoresController.StoreEmailRule @inject WebhookSender WebhookSender @inject CallbackGenerator CallbackGenerator @{ var storeId = Context.GetStoreData().Id; bool isEdit = Model.Trigger != null; ViewData.SetActivePage(StoreNavPages.Emails, StringLocalizer[isEdit ? "Edit Email Rule" : "Create Email Rule"], storeId); var bitcoinWalletTransactions = CallbackGenerator.WalletTransactionsLink(new (storeId, "BTC"), this.Context.Request); } @section PageHeadContent { }
Choose what event sends the email.
Who to send the email to. For multiple emails, separate with a comma.
Placeholders
Invoice {Invoice.Id}, {Invoice.StoreId}, {Invoice.Price}, {Invoice.Currency}, {Invoice.Status}, {Invoice.AdditionalStatus}, {Invoice.OrderId} {Invoice.Metadata}*
Request {PaymentRequest.Id}, {PaymentRequest.TrimmedId}, {PaymentRequest.Amount}, {PaymentRequest.Currency}, {PaymentRequest.Title}, {PaymentRequest.Description}, {PaymentRequest.Status} {PaymentRequest.FormResponse}*
Payout {Payout.Id}, {Payout.PullPaymentId}, {Payout.Destination}, {Payout.State} {Payout.Metadata}*
Pending Transaction {PendingTransaction.Id}, {PendingTransaction.TrimmedId}, {PendingTransaction.StoreId}, {PendingTransaction.SignaturesCollected}, {PendingTransaction.SignaturesNeeded}, {PendingTransaction.SignaturesTotal}
* These fields are JSON objects. You can access properties within them using this syntax. One example is {Invoice.Metadata.itemCode}
@section PageFootContent { }