EmailQueueManager FetchEmailsToSend Method (Boolean, Boolean, Int32, Int32, Boolean, Int32)Kentico 8.0 API Reference
Fetches the e-mails which should be sent from database and marks them as being sent. If enabled all e-mails with status 'sending' which have EmailID smaller then or equal to 'firstEmailId' will be deleted.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

fetchFailed
Type: OnlineSystem Boolean
If true, failed e-mails are fetched
fetchNew
Type: OnlineSystem Boolean
If true, new e-mails are fetched
firstEmailId
Type: OnlineSystem Int32
First e-mail ID (all e-mails should have the same or larger ID)
issueId
Type: OnlineSystem Int32
If set, only e-mails of specified issue will be fetched
deleteSentEmails
Type: OnlineSystem Boolean
If true, e-mails fetched and sent in previous round are deleted
topN
Type: OnlineSystem Int32
Number of e-mails to fetch

Return Value

Type: OnlineDataSet
See Also