Chapter 3 DynaScript Predefined Objects


recipient object

Object

Represents the recipients of a mail piece.

Syntax

To use a recipient property:

recipient.propertyName

Description

Use the recipient object to view the names and delivery mode of the recipients mail piece.

Example

This example checks the name and mode of the recipients of the mail piece:

<!--SCRIPT
mlist = new MailList ("mail.sybase.com", "elmo", "dynamo", "elmo@mail.sybase.com");
mlistitem = mlist[12];
mlistitem.Retrieve();

for( i in mlistitem.recipients ) {
recip = mlistitem.recipients[i];
document.WriteLn("The name is: " + recip.name);
document.WriteLn("The mode is: " + recip.mode);

}
-->

See also

"recipients property".

"attachment object".

"mailList object".

"mailPiece object (incoming)".

"mailPiece object (outgoing)".

 


Copyright © 1999 Sybase, Inc. All rights reserved.