Jump to content
Toggle menu
  • 915 articles
  • 3.8K files
  • 30.2K users
  • 279.2K edits
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

SendBulkMail

From Catglobe Wiki



sendBulkMail

Send a bulk mail specified by its id.

Syntax

sendBulkMail(bulkMailId[,MaxToSend[, schedule]])

Arguments

bulkMailId: Is a numeric (non-decimal) expression. It is the id of the bulk mail.

maxToSend: Is a numeric (non-decimal) expression. It is the max email which send. -1 to send to all.

schedule: Use the given schedule to send the mails see CatTaskInstantSchedule class, defaults to instant.

Return type

empty

Example

sendBulkMail(1);

sendBulkMail(1,20); // 20 is max number email

sendBulkMail(1,20, new CatTaskSpecificTimeSchedule(new DateTime({...}));

Availability

Version 6.0. maxSend from Nov. 2016, schedule from June 2017.