Chapter 3 DynaScript Predefined Objects


recipient properties

The recipient object has these properties:

mode property

Syntax

recipient.mode 

Attributes

This property is read-only.

Description

Identifies the type of delivery.

Mode can be one of:

Return

String.

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

"mailList object".

"mailPiece object (incoming)".

"mailPiece object (outgoing)".

name property

Syntax

recipient.name 

Attributes

This property is read-only.

Description

The name of the recipient for a mail piece.

Return

String.

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

"mailList object".

"mailPiece object (incoming)".

"mailPiece object (outgoing)".

 


Copyright © 1999 Sybase, Inc. All rights reserved.