Click or drag to resize
EmailQueueManagerFetchVariantEmailsToSend Method
Fetches the variant e-mails which should be sent from database and marks them as being sent. If enabled all e-mails with status 'sending' which have EmailGUID smaller then or equal to 'firstEmailGuid' will be deleted.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 10.0.0
Syntax
C#
public static DataSet FetchVariantEmailsToSend(
	bool fetchFailed,
	bool fetchNew,
	Guid firstEmailGuid,
	int issueId,
	bool deleteSentEmails,
	int topN
)

Parameters

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

Return Value

Type: DataSet
See Also