rem: function sendMail(from, to, subject, body) { if (!from || !to || !body) throw new MailException("mailMissingParameters"); var mail = new Mail(); mail.setFrom(from ? from : root.sys_email); if (to && to instanceof Array) { for (var i in to) mail.addBCC(to[i]); } else mail.addTo(to); 
add: function sendMail(sender, recipient, subject, body) { if (!sender || !recipient || !body) { app.log("Insufficient arguments in method sendMail()"); return; } var mail = new helma.Mail(); mail.setFrom(sender); if (recipient instanceof Array) { for (var i in recipient) { mail.addBCC(recipient[i]); } } else { mail.addTo(recipient); } 
context: function sendMail(from, to, subject, body) {   if (!from || !to || !body)      throw new MailException("mailMissingParameters");   var mail = new Mail();   mail.setFrom(from ? from : root.sys_email);   if (to && to instanceof Array) {      for (var i in to)         mail.addBCC(to[i]);   } else      mail.addTo(to);   mail.setSubject(subject);   mail.setText(body);   switch (mail.status) {      case 10 :         throw new MailException("mailSubjectMissing");         break;      case 11 :         throw new MailException("mailTextMissing");         break;      case 12 :         throw new MailException("mailPartMissing");         break;      case 20 :         throw new MailException("mailToInvalid");         break;      case 21 :         throw new MailException("mailCCInvalid");         break;      case 22 :         throw new MailException("mailCCInvalid");         break;      case 30 :         throw new MailException("mailSend");         break;   }   // finally send the mail   mail.queue();   return new Message("mailSend");}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/e9a7800a87905f590201a6af0beb752a4e65a080/Global.js/clean/code/Global/Global.js