N/email Module

Use the N/email module to send email messages from within NetSuite. You can use the N/email module to send regular, bulk, and campaign email.

                                   

In This Help Topic

N/email Module Members

Member Type

Name

Return Type / Value Type

Supported Script Types

Description

Method

email.send(options)

void

Client and server scripts

Sends transactional email to an individual or group of recipients and receives bounceback notifications.

Note:

To send email on another user’s behalf, the user triggering the email send must have a role with the Vicarious Email (ADMI_VICARIOUS_EMAIL) permission. If a user without this permission executes SuiteScript that sends email, a Permission Violation error is returned.

email.send.promise(options)

void

Client scripts

Sends transactional email asynchronously to an individual or group of recipients and receives bounceback notifications.

email.sendBulk(options)

void

Client and server scripts

Sends bulk email (for use when a bounceback notification is not required).

email.sendBulk.promise(options)

void

Client scripts

Sends bulk email asynchronously (for use when a bounceback notification is not required).

email.sendCampaignEvent(options)

number

Client and server scripts

Sends a single “on-demand” campaign email to a specified recipient and return a campaign response ID.

email.sendCampaignEvent.promise(options)

number

Client and server scripts

Sends a single “on-demand” campaign email asynchronously to a specified recipient and return a campaign response ID.

Note:

Some email recipients may have another record type or types listed on their record in the Other Recipients field. Because records with other relationship types share the same internal ID across types, email sent with SuiteScript is saved on each record type for the recipient. For more information, see Records as Multiple Types.

Related Topics

SuiteScript 2.x Modules
SuiteScript 2.x

General Notices