Creating a Receiving Agent for SMTP Transport

The SendSMTP component can send e-mail to any mail recipient. However, in order to receive a business data object and pass it to an application on the receive side, the receiving mail system must invoke the receive pipeline.

If you are using Microsoft® Exchange 5.5, you can run a Visual Basic script to invoke an OrderPipeline object (but not an MtsPipeline or MtsTxPipeline) on the Exchange server when mail arrives in the designated mailbox to process the received messages. Commerce Server includes the Recvsmtp.vbs example script, which is installed into \Microsoft Site Server\SiteServer\Commerce\. The following procedure describes how to use this script with an Exchange 5.5 mail server and Microsoft Outlook 8.03 installed on a client computer that connects to the Exchange server.

To create a receiving agent
  1. Create a new alias (for this example, name this alias Client1) on the Exchange 5.5 server (Server1) to monitor and program the receiving script.
  2. Start the Outlook 8.03 client on any computer on the network. Log on with a profile that chooses the alias Client1 on Server1.
  3. Create a public folder called CIReceive (for “Commerce Interchange Receive”).
  4. Grant users permissions to run scripts.
  5. Make the chosen public folder accept mail.
  6. Create a new script.

© 1997-1998 Microsoft Corporation. All rights reserved.