November Happy Hour will be moved to Thursday December 5th.

Class EmailNotificationProvider

Inheritance
System.Object
EmailNotificationProvider
Namespace: EPiServer.Notification.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration]
public class EmailNotificationProvider : Object, INotificationProvider, INotificationProviderStatus

Constructors

EmailNotificationProvider(ISmtpClient, NotificationOptions)

Declaration
public EmailNotificationProvider(ISmtpClient smtpClient, NotificationOptions options)
Parameters
Type Name Description
ISmtpClient smtpClient
NotificationOptions options

Properties

DisabledReason

Declaration
public string DisabledReason { get; }
Property Value
Type Description
System.String

IsDisabled

Declaration
public bool IsDisabled { get; }
Property Value
Type Description
System.Boolean

ProviderName

Declaration
public string ProviderName { get; }
Property Value
Type Description
System.String

Methods

CreateMailMessage(ProviderNotificationMessage)

Declaration
protected virtual MimeMessage CreateMailMessage(ProviderNotificationMessage providerNotificationMessage)
Parameters
Type Name Description
ProviderNotificationMessage providerNotificationMessage
Returns
Type Description
MimeKit.MimeMessage

GetProviderFormat()

Declaration
public NotificationFormat GetProviderFormat()
Returns
Type Description
NotificationFormat

SendAsync(IEnumerable<Task<ProviderNotificationMessage>>, Action<ProviderNotificationMessage>, Action<ProviderNotificationMessage, Exception>)

Declaration
public virtual Task SendAsync(IEnumerable<Task<ProviderNotificationMessage>> waitableMessages, Action<ProviderNotificationMessage> succeededAction, Action<ProviderNotificationMessage, Exception> failedAction)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Threading.Tasks.Task<ProviderNotificationMessage>> waitableMessages
System.Action<ProviderNotificationMessage> succeededAction
System.Action<ProviderNotificationMessage, System.Exception> failedAction
Returns
Type Description
System.Threading.Tasks.Task

Implements

Extension Methods