Table of Contents

Class EmailInfoProviderExtensions

Namespace
CMS.EmailEngine
Assembly
CMS.EmailEngine.dll

Contains extension methods for EmailInfo's IInfoProvider<TInfo>.

public static class EmailInfoProviderExtensions
Inheritance
object
EmailInfoProviderExtensions

Methods

GetExpiredCount(IInfoProvider<EmailInfo>, DateTime)

Gets the number of archived emails that are older that expiration date.

public static int GetExpiredCount(this IInfoProvider<EmailInfo> emailInfoProvider, DateTime expirationDate)

Parameters

emailInfoProvider IInfoProvider<EmailInfo>

Email info provider.

expirationDate DateTime

Expiration date.

Returns

int

SetMessage(IInfoProvider<EmailInfo>, EmailMessage, bool)

Creates new EmailInfo from EmailMessage.

public static EmailInfo SetMessage(this IInfoProvider<EmailInfo> emailInfoProvider, EmailMessage message, bool dontSend = false)

Parameters

emailInfoProvider IInfoProvider<EmailInfo>

Email info provider.

message EmailMessage

Email message

dontSend bool

If true, e-mail status remains 'being created' so it could not be sent

Returns

EmailInfo

EmailInfo object