Chapter 3 DynaScript Predefined Objects
The recipient
object
has these properties:
recipient.mode
This property is read-only.
Identifies the type of delivery.
Mode can be one of:
to
recipient
is the main target of the mail piece.
cc
recipient
is being carbon-copied.
bcc
recipient
is being blind carbon-copied.
String.
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);
}
-->
"mailPiece object (incoming)".
"mailPiece object (outgoing)".
recipient.name
This property is read-only.
The name of the recipient for a mail piece.
String.
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);
}
-->
"mailPiece object (incoming)".
"mailPiece object (outgoing)".
Copyright © 1999 Sybase, Inc. All rights reserved. |
![]() |