Global.helma.Mail.send ()
Sourcecode in /home/hannes/helma/modules/helma/Mail.js:
247:   this.send = function() {
248:           if (this.status > OK) {
249:               res.debug(errStr + ".send(): Status is " + this.status);
250:               return;
251:           }
252:           try {
253:               if (buffer != null) {
254:                   if (multipart != null) {
255:                       var part = new MimeBodyPart();
256:                      part.setContent(buffer.toString(), "text/plain");
257:                      multipart.addBodyPart(part, 0);
258:                      message.setContent(multipart);
259:                  } else {
260:                      message.setText(buffer.toString());
261:                  }
262:              } else if (multipart != null) {
263:                  message.setContent(multipart);
264:              } else {
265:                  message.setText("");
266:              }
267:              message.setSentDate(new Date());
268:              Transport.send(message);
269:          } catch (mx) {
270:              res.debug(errStr + ".send(): " + mx);
271:              setStatus(SEND);
272:          }
273:          return;
274:      }