Chapter 3 DynaScript Predefined Objects
Represents the recipients of a mail piece.
To use a recipient property:
recipient.propertyName
Use the recipient object to view the names and delivery mode of the recipients mail piece.
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); } -->
recipient.mode
This property is read-only.
Identifies the type of delivery.
Mode can be one of:
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); } -->
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); } -->
Copyright © 2001 Sybase, Inc. All rights reserved. |
![]() |