Hello all, I can’t receive an email, that was gene...
# suitescript
i
Hello all, I can’t receive an email, that was generated in the user event script (Sandbox afterSubmit). Can someone please take a look? Script is in “testing” status and was created by me (the same user as the one I’m trying to send email to):
Copy code
function afterSubmit(scriptContext) {
        email.send({
            author: 61115,
            recipients: "<mailto:user_created_script_email@some.com|user_created_script_email@some.com>",
            subject: "TESTING",
            body: "some text"
        });
    }
No errors were raised.
s
Sandbox does not send emails by default. You have to set that in the Email Preferences.