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

Promise Object

Synchronous Version

email.sendBulk(options)

Supported Script Types

Client scripts

For additional information, see SuiteScript 2.x Script Types.

Governance

10 units

Module

N/email Module

Since

2015.2

Syntax
Important:

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 

        

Related Topics

General Notices