Difference between revisions of "BulkMail sendSyncronious"
Nguyenduyan (talk | contribs) |
Nguyenduyan (talk | contribs) |
||
Line 7: | Line 7: | ||
'''Syntax''' | '''Syntax''' | ||
− | BulkMail_sendSyncronious(number BulkmailRId[,number MaxToSend][, | + | 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/> | + | 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''' | ||
Line 24: | Line 24: | ||
</source> | </source> | ||
− | <br><source lang="javascript"> | + | <br/><source lang="javascript"> |
− | number sent = BulkMail_sendSyncronious( | + | number sent = BulkMail_sendSyncronious(15555054,100, function(number nrSending) { |
− | + | bool hasEnough = false; | |
− | bool hasEnough = | + | if (!hasEnough) throw (nrSending); |
− | if (!hasEnough) throw | ||
}); | }); | ||
</source> | </source> | ||
− | |||
[[Category:Email_and_SMS_Functions]] | [[Category:Email_and_SMS_Functions]] |
Revision as of 05:21, 30 December 2016
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
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);
});