Discussions
nlapiSendEmail didn't send email
Hi, I have being experimenting some problems to send a notification email during a user event script and a schedule script.
The script is very simple:
var record = nlapiGetNewRecord();
var email = nlapiMergeEmail(17, record.getRecordType(), record.getId());
nlapiSendEmail(974, 974, 'User Event After Submit', email, null, ['employee1@gmail.com','employee2@yahoo.com']);
The numbers are valid template and user. The execution log didn't recieve any exception.
Why it was not sent the email to contacts?
The schedule script sent the email to the owner script with the subject being modified: 'User Event After Submit (Originally contact: ['employee1@gmail.com','employee2@yahoo.com'])'