RE: How to email using SuiteScript in Sandbox?

const senderId = 35111 // employee id
const recipientEmail = [‘’, ‘’];
const recipientCCEmail = [‘’, ‘’];
        author: senderId,
        recipients: recipientEmail,
        cc: recipientCCEmail,
        subject: ‘Test:  license code’,
        body: `There is not enough license code for this order.
        Please add more license code for sku: 1234`,
        relatedRecords: {
                entityId: recipientId
I get an email on my company’s email on (35111) and next to the subject I get (officially to: firstTest… secondTest… officially cc: thirdTest… fourthTest.
None of the other email is getting an email. I release the Script, this is on sandbox, only the sender is receiving the email.
Cesar_ Rookie Asked on July 12, 2023 in SuiteScript.
Add Comment
2 Answers

Sandbox accounts intentionally do not send emails externally.

You can read more in the section about Sandbox and Release Preview accounts here:

Intermediate Answered on July 13, 2023.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.