This topic contains 4 replies, has 0 voices, and was last updated by chanarbon 7 years, 4 months ago.

  • Author
    Posts
  • #18364

    karenn

    Hello all,

    I have sent emails from various scripts without issue but while working on a new scheduled script I cannot get it to send an email. Right now it is simply an email.send statement. Script runs fine just never receive an email and ids for author and recipient are accurate. Any idea what is going on?

    Thanks,

    Karen
    This is a cached copy. Click here to see the original post.

  • #18365

    pcutler

    Hi Karen, are you developing this in a sandbox account? If so, how do you have your sandbox email preferences configured? By default, sandbox emails are sent to the logged in user. Therefore, when testing client scripts, user event scripts, and suitelets you would receive the emails. In contrast, scheduled scripts generally run at their scheduled times as the system user so you would not be the current user who receives the emails.

    There are two ways to work around this:

    1. Adjust your sandbox email preferences so that the emails go to specific email address(es) (i.e. your own)

    2. Attach the email to a record and review the message attached to that record in NetSuite

  • #18366

    karenn

    I have tried this in sandbox and production and have not received an email while running the script in test mode.

  • #18367

    david.smith

    post your section of code for the email send.

  • #18368

    chanarbon

    Hi karenn ,

    One of the possible cause is that you are sending an email of the same subject to the same recipients more than 6 times per 10 minutes. I would suggest that you file a support case so our support team could validate the cause. I would suggest making something dynamic with regards to the subject and the contents of your email.

You must be logged in to reply to this topic.