Chapter 3 DynaScript Predefined Objects
This object is a mail piece received by a specific recipient which is being held on a mail server. The mailList object is a list of incoming mail piece objects representing mail accessible via a POP3 server.
To use an incoming mail piece property:
mailPiece.propertyName
To use an incoming mail list method:
mailPiece.MethodName( parameter )
Each incoming mail piece is represented by an incoming mail piece object. You can manipulate the object to display the different parts of the incoming mail piece.
This example retrieves a mail piece (mlistitem) and displays its subject, body, and attachments:
<!--SCRIPT
mlist = new MailList ("mail.sybase.com", "elmo", "secret", "elmo@mail.sybase.com ");
mlistitem = mlist[1];
mlistitem.Retrieve();
document.WriteLn( mlistitem.subject );
document.WriteLn( mlistitem.body );
document.WriteLn( mlistitem.attachments );
mlist.Disconnect();
-->
"mailPiece object (outgoing)".
Copyright © 1999 Sybase, Inc. All rights reserved. |