rem: mail.send(); if (mail.status != 0) throw new MailException("mailSend"); 
add: mail.queue(); 
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.addTo(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.send();   if (mail.status != 0)      throw new MailException("mailSend");   return new Message("mailSend");}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/86061433f42d804aca3cbae51024da9e3af0e451/objectFunctions.js/buggy/code/Global/objectFunctions.js