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: 8.2.23
Syntax
C#
public static DataSet FetchEmails(
	EmailMailoutEnum emailsToFetch,
	int firstEmailId,
	int batchSize = 0
)

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

Return Value

Type: DataSet
DataSet with fetched e-mails
See Also