|        | |||||
|  | |||||
| function | MailOutBoxSendMail | ||||
| Other Library Functions | 
| Library: Mail Include: ommail.xin | 
  define external output function MailOutBoxSendMail
             value MailOutBox this-MailOutBox
     to      value stream recipients
     subject value stream subject optional initial {""}
     header  value stream header-info optional
This function initiates the sending of a mail message with the specified subject, mail header, and recipient list. It returns an external output object that is used to compose the body of the message. Closing the stream attached to this external output object signals the end of message composition and triggers the delivery of the message. Note that it is an error to dynamically reopen a stream attached to an external output object derived from a Mail outbox object once that stream has been closed.
Arguments:
Example:
  process
     local stream msg
     open msg as MailOutBoxSendMail this-MailOutBox
        to "[email protected]"
        subject "just to say hello"
        put msg "just"
        put msg "to say"
        put msg "hello"
        put msg "%n"
        close msg
| ---- |