Modules
SuiteScript 2.0
{email}.sendBulk({author: {number*},body: {string*},recipients: {number | string | number[] | string[]*},subject: {string*},attachments: {file.File []},bcc: ${7:number[] | string[]},cc: ${8:number[] | string[]},isInternalOnly: ${9:boolean},relatedRecords: {0:Object},replyTo: {1:string}})
N/email Module
email.sendBulk()
Method Description:
Sends bulk email (for use when a bounceback notification is not required).
A maximum of 10 recipients (recipient + cc + bcc) is allowed.
The total message size (including attachments) must be 20MB or less. The size of each individual attachment cannot exceed 10MB.
This API normally uses a bulk email server to send messages. If you need to increase the successful delivery rate of an email, use email.send(options) so that a transactional email server is used.
Returns:
void
Supported Script Types:
Client and server scripts
For additional information, see SuiteScript 2.0 Script Types.
Governance:
10 units
Module:
N/email Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=email.sendBulk(options)
Example:
// Code Example 1
//Add additional code
//...
var recipientEmails = [
'msample@netsuite.com',
'jdoe@netsuite.com',
'awolfe@netsuite.com,
'htest@netsuite.com
];
email.sendBulk({
author: -5,
recipients: recipientEmails,
subject: 'Order Status',
body: 'Your order has been completed.',
replyTo: 'accounts@netsuite.com'
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4358667505.html