SaaS CMS has officially launched! Learn more now.

Class EmailNotificationProvider

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Inheritance
System.Object
EmailNotificationProvider
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Notification.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(typeof(INotificationProvider))]
public class EmailNotificationProvider : INotificationProvider, INotificationProviderStatus

Constructors

EmailNotificationProvider(SmtpClientFactory, NotificationOptions)

Declaration
public EmailNotificationProvider(SmtpClientFactory smtpClientFactory, NotificationOptions options)
Parameters
Type Name Description
SmtpClientFactory smtpClientFactory
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 MailMessage CreateMailMessage(ProviderNotificationMessage providerNotificationMessage)
Parameters
Type Name Description
ProviderNotificationMessage providerNotificationMessage
Returns
Type Description
System.Net.Mail.MailMessage

GetProviderFormat()

Declaration
public NotificationFormat GetProviderFormat()
Returns
Type Description
NotificationFormat

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

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

Implements

Extension Methods