Class EmailInfoProviderExtensions
- Namespace
- CMS.EmailEngine
- Assembly
- CMS.EmailEngine.dll
Contains extension methods for EmailInfo's IInfoProvider<TInfo>.
public static class EmailInfoProviderExtensions
- Inheritance
-
objectEmailInfoProviderExtensions
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
DateTimeExpiration 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
EmailMessageEmail message
dontSend
boolIf true, e-mail status remains 'being created' so it could not be sent
Returns
- EmailInfo
EmailInfo object