scheduled script to send email is not sending emai...
# ask-stanley-ai
j
scheduled script to send email is not sending email in sandbox and checking the sent email list status says not sent
c
AI generated answer (using internal Slack threads):
Based on the conversations, there could be several reasons why the scheduled script is not sending emails in the sandbox and the status says not sent: 1. Code Issue: Ensure that the code for the email portion is correct. Sometimes, the email attempts to send but fails without throwing an error. If you are using a customer/employee/entity ID through a variable to set the author or recipient, you might need to specifically
parseInt()
or do some type of forced number coercion to get it to pick up properly. 2. Email Preferences: Check your sandbox email preferences. You might need to set the preferences to send email to your own email. 3. Unique Email Subject: The email subject should be unique (e.g., including a transaction number in the subject). If it's not unique, it might be recognized as spam and won't be sent out. 4. Email Sending Limit: If you run several tests in a row, you might suddenly have emails stop sending. It's like there is an internal governance or hang-up in the email process in the sandbox. In this case, you might need to give it some time before attempting an email again. 5. Email Domain: If you use a domain that is the same as the company domain of your NetSuite account, it might work in the sandbox. Using a private email address, such as Gmail, might not work in the sandbox. 6. Duplicate Emails: If the server sees multiple identical mails sent via standard, it blocks them as potential junk. Try adding a unique value in the subject to avoid this issue. Remember to check the communications tab on your employee record in that sandbox account and also check in Setup > Company > Sent Email List. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.873239756
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.849687219
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.847818613
Please provide your feedback on this answer.