More actions
Created page with "{{HelpFiles}} ==== BulkMail_sendSyncronious ==== Send a bulk mail and return a number email have just sent.<br/>'''Syntax''' BulkMail_sendSyncronious(number Bulk_mail_resou..." |
No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
==== BulkMail_sendSyncronious ==== | ==== BulkMail_sendSyncronious ==== | ||
Send a bulk mail and return a number email have just sent. | Send a bulk mail and return a number email have just sent. | ||
BulkMail_sendSyncronious(number | '''Syntax''' | ||
BulkMail_sendSyncronious(number BulkmailRId[,number MaxToSend][, callback function(number nrSending)]); | |||
'''Arguments''' | '''Arguments''' | ||
BulkmailRId: Is a numeric (non-decimal) expression. It is the resource id of the bulk mail.<br/>MaxToSend: Is a numeric (non-decimal) expression. It is the max email which send.<br/>callback function(nrSending): call back number sending | |||
'''Return value''' | '''Return value''' | ||
number | number of mails being sent | ||
=== Examples === | === Examples === | ||
Line 19: | Line 21: | ||
<source lang="javascript"> | <source lang="javascript"> | ||
number a=BulkMail_sendSyncronious(15551353,1); | number a=BulkMail_sendSyncronious(15551353,1); | ||
//result: | //result: 1 | ||
</source> | |||
<br/><source lang="javascript"> | |||
number sent = BulkMail_sendSyncronious(15555054,100, function(number nrSending) { | |||
bool hasEnough = false; | |||
if (!hasEnough) throw (nrSending); | |||
}); | |||
</source> | </source> | ||
[[Category:Email_and_SMS_Functions]] |
Latest revision as of 02:51, 9 July 2020
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);
});