N/email module is used to send regular, bulk, and campaign email.
email.send()
email.sendBulk()
email.sendCampaign()
The email.send() function in SuiteScript is used to send emails from within NetSuite. This function is part of the N/email module and allows you to send emails.
The parameters are:
- author : The internal ID of the employee who is sending the email.
- recipients : The internal ID(s) of the recipients.
- subject : The subject of the email.
- body : The body content of the email.
- cc : The internal ID(s) of employees to be CC’d on the email.
- bcc : The internal ID(s) of employees to be BCC’d on the email.
- attachments : A file object or an array of file objects to attach to the email. Files should be loaded using the N/file module.
- relatedRecords : An object that defines any records to associate with the email, such as transactions or entities.
- replyTo : The email address to be used for replies.