Sending email
function sendAlert() {
// TODO Add Your Code Here
// TODO Handle Errors
// Notify The Owner
var me = NSOA.wsapi.whoami();
var msg = {
to: [me.id],
subject: "Script completed",
format: "HTML",
body: "<b>Your script completed</b><br/>" +
"<hr/><i>Automatically sent by SuiteProjects Pro</i>"
};
NSOA.meta.sendMail(msg);
}
See also NSOA.meta.sendMail(message)