BulkMail save

From Catglobe Wiki
Revision as of 09:48, 7 March 2011 by 127.0.0.1 (talk | contribs) (jrfconvert import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



BulkMail_save

Save bulk mail

Syntax

BulkMail_save(bulkMailObject)

Arguments

bulkMailObject: is an array. (refer to BulMail_new function to see bulkMailObject)

Return type

empty

Example

string bulkMailName = "TestBulkMail";

number parentResourceId = 34778803;

number mailTemplateResourceId = 501537;

array newBM = BulkMail_new(bulkMailName, parentResourceId, mailTemplateResourceId);

array userResourceIds = {34779312};

array groupResourceIds = {34780089};

newBM[BULKMAIL_USER_RESOURCE_IDS] = userResourceIds;

newBM[BULKMAIL_GROUP_RESOURCE_IDS] = groupResourceIds;

BulkMail_save(newBM);

Availability

Version 5.8