Project nearing completion, so I appreciate everyo...
# suitescript
r
Project nearing completion, so I appreciate everyone's help. New issue with N/email within a Map/Reduce script. This is being done on sandbox (and I'm getting the rerouted emails from a sandbox acct) This works and I get an email
Copy code
let content = 'this is a test';
Nemail.send({
author: -5,
recipients: 'rickg@....com',
subject: 'Vendor Order Processing Summary',
body: content,
});
this does not, I never get an email. No errors in script log, M/R shows as completed
Copy code
let content = '<h4>Run Info</h4><br />1 file found to process<br /><br /><h4>Order Processing</h4><br /><ul><li><span style="font-family: monospace;">DailyLeads_1_20240610081734.xml</span><ul><li>Vendor Entity: <span style="font-family: monospace;">221310</span><ul><li>Matched Customer by Vendor Entity ID 221310 <a href="<https://111111-sb1.app.netsuite.com/app/common/entity/custjob.nl?id=33028&compid=111111_SB1>">Company Name</a></li><li>Found existing contact, checking for updates</li><li>Customer IID: 33028, Contact IID: 32928, Address Book IID: 154917</li><li>Vendor Order ID 0030590252342 already exists, skipping</li></ul></li></ul></li></ul>';
Nemail.send({
author: -5,
recipients: 'rickg@....com',
subject: 'Vendor Order Processing Summary',
body: content,
});
I cannot see any difference between the two other than content, which in theory contains nothing that would cause an email not to be sent.
e
Your code works for me.
r
so... I've checked our edge provider, and there are no emails there getting blocked. It's just, not showing up
b
r
once again thanks, I was looking for something similar and knew there had to be something but my googling wasn't good enough