email.sendBulk.promise(options)
Method Description |
Sends bulk email asynchronously (for use when a bounceback notification is not required).
Note:
The parameters and errors thrown for this method are the same as those for email.sendBulk(options). For more information about promises, see Promise Object. |
Returns |
|
Synchronous Version |
|
Supported Script Types |
Client scripts For additional information, see SuiteScript 2.x Script Types. |
Governance |
10 units |
Module |
|
Since |
2015.2 |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete promise script example, see Promise Object.
//Add additional code
...
var recipientEmails = [
'msample@netsuite.com',
'jdoe@netsuite.com',
'awolfe@netsuite.com',
'htest@netsuite.com'
];
email.sendBulk.promise({
author: -5,
recipients: recipientEmails,
subject: 'Order Status',
body: 'Your order has been completed.',
replyTo: 'accounts@netsuite.com'
}).then (function(result) {
// Process the result
});
...
//Add additional code