This topic contains 4 replies, has 0 voices, and was last updated by chanarbon 7 years, 4 months ago.
-
AuthorPosts
-
July 17, 2017 at 1:46 pm #18364
karennHello 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. -
July 17, 2017 at 2:37 pm #18365
pcutlerHi 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
-
July 18, 2017 at 6:43 am #18366
karennI have tried this in sandbox and production and have not received an email while running the script in test mode.
-
July 18, 2017 at 8:44 am #18367
david.smithpost your section of code for the email send.
-
July 18, 2017 at 10:49 pm #18368
chanarbonHi 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.
-
AuthorPosts
You must be logged in to reply to this topic.
