BulkMail countRecipients

From Catglobe Wiki
Jump to: navigation, search


BulkMail_countRecipients

Count the number of recipients whom the bulk mail is not sent to

Syntax

BulkMail_countRecipients(bulkMailResourceId[,MaxToSend])

Arguments

  • bulkMailResourceId: is a number expression. It is the bulk mail's resource id

MaxToSend: Is a numeric (non-decimal) expression. It is the max email which send.

Return value

number

Example

number bmId = 8637;

string guid = getResourceGuid(Resource_Type_BulkMail, bmId);

number bmRId = getResourceUniqueIdFromGuid(guid);

number n = BulkMail_countRecipients(bmRId);

number m = BulkMail_countRecipients(bmRId, 20); // count 20 recipients

print(n);

Availability

Version 5.6