Global.flushMailQueue () |
send all mails contained in the
application-wide mail queue |
Sourcecode in Global/objectFunctions.js:
1: function flushMailQueue() { 2: if (app.data.mailQueue.length > 0) { 3: app.debug("flushing mailQueue, sending " + app.data.mailQueue.length + " e-mail(s) ..."); 4: while (app.data.mailQueue.length) { 5: var mail = app.data.mailQueue.pop(); 6: mail.send(); 7: if (mail.status > 0) 8: app.debug("Error while sending e-mail, status = " + mail.status); 9: } 10: } 11: return; 12: } |