Interface INotificationEmailMessageProvider
- Namespace
- CMS.Notifications
- Assembly
- CMS.Notifications.dll
Provides methods for creating EmailMessage for notification emails.
public interface INotificationEmailMessageProvider
- Extension Methods
Methods
CreateEmailMessage(string, int, INotificationPlaceholders, CancellationToken)
Creates an EmailMessage according to the notification email defined by the notificationEmailCodeName.
Task<EmailMessage> CreateEmailMessage(string notificationEmailCodeName, int userId, INotificationPlaceholders placeholders, CancellationToken cancellationToken = default)
Parameters
notificationEmailCodeNamestringNotification email code name.
userIdintUser Identifier.
placeholdersINotificationPlaceholdersEmail content's placeholders.
cancellationTokenCancellationTokenCancellation instruction.
Returns
- Task<EmailMessage>