Click or drag to resize
EmailInfoProviderFetchEmails Method
Fetches e-mails which should be sent and marks them as being sent.

Namespace: CMS.EmailEngine
Assembly: CMS.EmailEngine (in CMS.EmailEngine.dll) Version: 13.0.131
Syntax
C#
public static DataSet FetchEmails(
	EmailMailoutEnum emailsToFetch,
	int firstEmailId,
	int batchSize = 0,
	Nullable<DateTime> failedEmailsNewerThan = null
)

Parameters

emailsToFetch
Type: CMS.EmailEngineEmailMailoutEnum
Determines which e-mails are to be fetched
firstEmailId
Type: SystemInt32
First email ID (only e-mails with the same or higher ID are fetched)
batchSize (Optional)
Type: SystemInt32
Number of e-mails to retrieve; default value is 0 - in this case batch size is retrieved from Settings
failedEmailsNewerThan (Optional)
Type: SystemNullableDateTime
Timestamp indicating that only failed emails that are younger than given date should be sent. Only works for Failed.

Return Value

Type: DataSet
DataSet with fetched e-mails
See Also