You can send mail from a PocketBuilder application through a Microsoft ActiveSync connection that is configured to synchronize mail files with a desktop mail client. Microsoft Outlook can be configured to work with ActiveSync. ActiveSync does not support synchronization with Microsoft Outlook Express.
Configuring ActiveSync for mail synchronization with
Microsoft Outlook
On your desktop machine, you configure ActiveSync to work
with Outlook by selecting Tools>Options from the ActiveSync menu
bar. In the list box on the Sync Options page of the Options dialog
box, select Inbox for synchronization. If you select the check box
to enable synchronization with a server, you cannot synchronize
mail directly with Outlook.
To send mail in a PocketBuilder mail application, you must instantiate a mailSession object and call the PowerScript mail functions mailLogon, mailSend, and mailLogoff. You can use the mail Message and mailRecipient system structure objects to hold content and destination information for the messages you want to send by e-mail. The mailFileDescription object can be used to describe mail attachments, although mailAttach! is the only supported value for an attachment’s file type.
Mail that you send from a PocketBuilder application is immediately placed in the Outbox of the Microsoft Outlook account that is synchronized to your Pocket PC through ActiveSync. The mail remains in the Outbox until a preset time for mail transfer has elapsed, or until an action on the desktop triggers the sending of mail in the Outbox.