hello folks, i have a suitelet that is getting fir...
# general
m
hello folks, i have a suitelet that is getting fired via a button on a blanket purchase order. the suitelet is rendering the blanket PO to a PDF and then emailing it. no errors are being thrown and the email is showing up under the communication tab of the record as well as the sent email list under setup>company>communication with a status of sent. problem is, it doesnt show up in anyone’s inbox. this is in a production environment. anyone experience anything similar? I’ve never had this happen but I have had some quirks so far working with blanket POs
m
Are you using SS1 or SS2?
m
2
m
Can you post the line of code where you send the email to here (just want to see the arguments)
m
for sure, thanks Michael
let pdfFile = renderer.renderAsPdf();
log.debug(“Generated PDF File”, pdfFile); email.send({ author: 14119, recipients: recipientsArr, subject: ‘Blanket Purchase Order’, body: ‘Please find the attached PDF of your blanket purchase order.’, attachments: [pdfFile], relatedRecords: { transactionId: Number(orderId), }, });
m
@McCoy That looks fine as is. The next test I would try would be sending the email to a different domain. For example, if you have a gmail account, can you try sending it there and seeing if it comes in (even in Spam).
There's a chance the email is bouncing, but it hasn't been long enough to be 'reported' as a bounce.
Sometimes that can take upwards of three days.
m
awesome, that is sort of what I was wondering as their accounts last bounced email shows on 6/3 and I imagine there have been a couple since then so maybe a lag
m
Ah, is that address on the 'Bounced Email Address' List?
b
Managing Bounced Email is where you start for finding undelivered emails
👍 1
m
<https://[PUT_ACCOUNT_ID_HERE].app.netsuite.com/app/common/entity/bouncedaddresses.nl?whence=>
b
that said, you are probably screwing up in your subject, or less likely body
m
ya i just put a dynamic variable in the subject to see if that helps
b
you cant keep on sending identical emails
m
thanks, folks. It does seem like that is probably the issue and the bounced addresses list just hasn’t caught up. I’ll let it sleep and check it tomorrow. Thanks for your suggestions, much obliged!
m
No prob. Best of luck. 🙂
👍 1