I'm trying to send email from a `sandbox account` ...
# suitescript
l
I'm trying to send email from a
sandbox account
using the
N/email
module. But it's not working. The same code in production environment works fine. Do I need to change any kind of setup?
b
take a look at your sandbox email preferences
l
@battk I set the preferences to send email to my own email. But I'm not receiving anything yet crying sunglasses
b
assuming you made the change to your sandbox account and not production, you want to start Troubleshooting Undelivered Email
n
If it's not arriving in your mail box I'd check the communications tab on your employee record in that sandbox account, it could show there even if it didn't "leave the building" so to speak.
d
Also worth checking in Setup > Company > Sent Email List
a
I have had issues with this for a long time. I have scripts that will not send out anything in SB accounts, but work just fine in production. I have kind of just come to accept it as a weird quirk of NS. 🤷‍♀️
a
I have found this only works in sandbox (with the correct settings as @battk suggested) if you use a domain that is for the same as the company domain of you netuiste account. Using a private email address, such as gmail, doesn't seem to work in sandbox
l
It worked guys. Thanks a lot