contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
function   MailOutBoxSendMail    
      Other Library Functions  

Library: Mail
Include: ommail.xin
Declaration

  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


Purpose

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

        Other Library Functions
   MailInBoxClose
   MailInBoxCreate
   MailInBoxGetMessage
   MailInBoxGetMessageSize
   MailInBoxGetNumberOfMessages
   MailInBoxGetStatusReport
   MailInBoxIsInError
   MailInBoxIsOpen
   MailInBoxMarkAllMessagesForDeletion
   MailInBoxMarkMessageForDeletion
   MailInBoxOpen
   MailInBoxResetDeletionFlags
   MailIsVersionCompatible
   MailLibraryVersion
   MailOutBoxCreate
   MailOutBoxGetStatusReport
   MailOutBoxIsInError
   MailOutBoxSendMail
 
----  

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:01:10 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.