Chapter 3 DynaScript Predefined Objects


mailPiece object (incoming)

Object

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.

Syntax

To use an incoming mail piece property:

mailPiece.propertyName

To use an incoming mail list method:

mailPiece.MethodName( parameter ) 

Description

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.

Example

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();
-->

See also

"attachment object".

"mailList object".

"mailPiece object (outgoing)".

"recipient object".

 


Copyright © 1999 Sybase, Inc. All rights reserved.