Chapter 9 PowerDynamo Mail Support
You can receive mail through Dynamo using a POP3 server, the DynaScript mail list, and incoming mail piece objects.
To retrieve mail from PowerDynamo you need:
The most efficient way to retrieve mail is to generate a list of the mail pieces that are waiting at the POP3 server, then select the mail pieces you want to download. Generally this is all done in one script.
To generate and retrieve a mail list from a Dynamo
script:
<!--SCRIPT mlist = new MailList ("mail.sybase.com", "elmo", "secret", "elmo@mail.sybase.com"); document.WriteLn(mlist); -->
<!--SCRIPT mlist = new MailList ("mail.sybase.com", "elmo", "secret", "elmo@mail.sybase.com"); num = mlist.count document.WriteLn("There are " + num + " messages in the mail box"); for (i in mlist) { inPiece=mlist[i]; if (inPiece.subject == "Bug Report") { inPiece.Retrieve(); document.WriteLn( "body: " + inPiece.body ); document.WriteLn( "sender: " + inPiece.sender ); } } mlist.Disconnect(); -->
Copyright © 2001 Sybase, Inc. All rights reserved. |
![]() |