email.send() throws UNEXPECTED_ERROR in Release Preview Account

Hi everyone , I have encountered this error
{"type":"error.SuiteScriptError","name":"UNEXPECTED_ERROR","message":null,"stack":["doSendEmail(N/email)","sendMail(/SuiteScripts/Webhive/ma_test_email.js:279)","takeAction(/SuiteScripts/Webhive/ma_test_email.js:61)"],"cause":{"type":"internal error","code":"UNEXPECTED_ERROR","details":null,"userEvent":"aftersubmit","stackTrace":["doSendEmail(N/email)","sendMail(/SuiteScripts/Webhive/ma_test_email.js:279)","takeAction(/SuiteScripts/Webhive/ma_test_email.js:61)"],"notifyOff":false},"id":"73e7f964-e577-4ddb-bf47-e2ff1eb58a3c-2d323032302e30392e3135","notifyOff":false,"userFacing":false} on
email.send({
author: mailAuthor,
recipients: mailRecipient,
subject: template.subject,
body: template.body

});
in Release Preview Account.  None of arguments ( mailAuthor,mailRecepient,template.subject, template.body ) are EMPTY.
The same code is running perfectly fine in SANDBOX and PRODUCTION Environment , It only throws error in RELEASE PREVIEW. Does anyone has any idea about this . Any help would be appreciated. Thanks

Rookie Asked on September 15, 2020 in SuiteScript.
Add Comment
2 Answer(s)

Have you configured your email in the Release Preview?

“Domains are not copied from your production account to your Release Preview account. Before using email in Release Preview, you need to set up Domain Keys for a domain that is separate from the email domain set up in your production account. If you try to set up the same domain you use in your production account, you will receive an error message indicating that the domain is already taken.”

Beginner Answered 6 days ago.
Add Comment

Sending frequent emails from RP or sandbox account is not allowed. If emails are not send please check communication subtab you will have sent email but not received by recipient.

Beginner Answered 3 days ago.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor