Chapter 9 PowerDynamo Mail Support
To send mail with PowerDynamo use the outgoing mail piece object. The outgoing mail piece object has many different methods and properties to help manipulate the way you want your outgoing mail piece to perform.
Some of the options that may be useful when sending mail through PowerDynamo are as follows:
Attachments
You
can send attachments such as files and documents along with a mail
piece. The attachment object allows the recipients of the mail piece
to manipulate the attachment as required.
Error checking
Use
the GetErrorCode and GetErrorInfo methods to monitor the status
of a mail piece that is being sent.
Multiple addresses
You
can send a single mail piece to many people.
Sender property
You
can specify a sender property. The sender property represents the
person that sent the mail piece. The from property represents the
person from whom the mail piece originated. For example, if an assistant
was sending a mail piece for their supervisor, the assistant's name
would be represented by the sender property while the supervisor's name
would be represented by the from property.
To send a mail piece from Dynamo you need:
To create and send a mail piece from within a Dynamo script:
<!--SCRIPT
mp = new MailPiece();
mp.from = "your@address.com";
mp.AddRecipient( "recipient@address.com" );
mp.subject = "My first mail piece";
mp.body = "This mail piece was sent from a Dynamo script.";
mp.Send();
-->
mp.Send();
if( !mp.Send() ) {
document.writeln( mp.GetErrorCode() );
document.writeln( mp.GetErrorInfo() );
}
For additional information, see "The mail piece object (outgoing)" in PowerDynamo Reference.
Copyright © 1999 Sybase, Inc. All rights reserved. |