Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

BulkMail sendSyncronious

From Catglobe Wiki
Revision as of 02:51, 9 July 2020 by Administrator (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


BulkMail_sendSyncronious

Send a bulk mail and return a number email have just sent.

Syntax

BulkMail_sendSyncronious(number BulkmailRId[,number MaxToSend][, callback function(number nrSending)]);

Arguments

BulkmailRId: Is a numeric (non-decimal) expression. It is the resource id of the bulk mail.
MaxToSend: Is a numeric (non-decimal) expression. It is the max email which send.
callback function(nrSending): call back number sending

Return value

number of mails being sent

Examples

number a=BulkMail_sendSyncronious(15551353,1);
//result: 1


number sent = BulkMail_sendSyncronious(15555054,100, function(number nrSending) {
bool hasEnough = false;
if (!hasEnough) throw (nrSending);
});