Installing the Sample Transport Provider

Installing the Sample Transport Provider

This topic takes you through the steps to download and install the Sample Transport Provider. The Sample Transport Provider, MRXP, implements a shared network file system transport provider. For more information about transport providers, see About the Sample Transport Provider.

Install the Sample Transport Provider

  1. Download the Sample Transport Provider here: Outlook 2007 Auxiliary Reference Code Samples and Redistributable Installer.
  2. Open the SampleTransportProvider folder and click Extract All Files.
  3. Click Browse, select the location where you want to save the sample, and click OK.
  4. Click Extract. The folder you selected appears and contains the extracted files.
  5. Run Visual Studio 2005 as an administrator.
    Bb820971.vs_note(en-us,office.12).gif  Note
    If your computer is running Windows XP, you must be logged in as an Administrator. If your computer is running Windows Vista, you must be logged in as an Administrator and you must right-click the Visual Studio 2005 icon and click Run as administrator.
  6. In Visual Studio 2005, click File, select Open, and then click Project/Solution.
  7. Browse to the location where you saved the sample, click mrxp32, and then click Open.
  8. On the Build menu, click Configuration Manager.
  9. In the Configuration Manager dialog box, go to the mrxp32 row. In the Configuration column select Debug, Release, Unicode_Debug.
    Bb820971.vs_note(en-us,office.12).gif  Note
    The Debug configuration builds the program with full symbolic debug information and no optimization. The Release configuration builds the program with no symbolic debug information and full optimization.
  10. Click Close.
  11. On the Build menu, click Build Solution.
  12. In the Save File As dialog box click Save.
  13. In the folder where you saved the sample, right-click the installation batch file that corresponds to the build configuration you chose and click Run as administrator.
    Bb820971.vs_note(en-us,office.12).gif  Note
    The Debug configuration corresponds to the installdebug.bat file, the Release configuration corresponds to the install.bat file, and the Unicode_Debug configuration corresponds to the installunicodedebug.bat file.
  14. In the User Account Control dialog box, click Continue.

Set Up the Transport Provider in Outlook 2007

  1. On the Tools menu, click Account Settings.
  2. In the Account Settings dialog box, on the E-mail tab, click New.
  3. Under Choose E-mail Service click Other, select MRXP Sample Transport, and then click Next.
  4. In the MRXP Transport Configuration dialog box type a User Display Name.
  5. Under Path to Inbox (UNC Share) enter a folder path. This can also be a path to a local folder.
    Bb820971.vs_note(en-us,office.12).gif  Note
    This folder path must exist.
  6. Click OK.
  7. In the Add E-mail Account dialog box click OK.
  8. Click Finish.
  9. Click Close.
  10. To start using the MRXP account, exit and restart Outlook.

Use the Transport Provider Sample to Send a Message in Outlook 2007

  1. On the File menu, click New, then click Mail Message.
  2. In the To box type the name of the recipient using the format [MRXP:<ADDRESS>]. The address is the UNC share or local folder path to the recipient's inbox.
    Bb820971.vs_note(en-us,office.12).gif  Note
    If there are colons or backslashes in the address, you must insert a backslash before each colon or backslash. For example, to send mail to [MRXP:C:\Mail\myDir] you must type [MRXP:C\:\\Mail\\myDir].
    Bb820971.vs_note(en-us,office.12).gif  Note
    The recipient address must exist.
  3. Click Account and click MRXP Sample Transport.
  4. Type your message and click Send. The message is sent using the MRXP transport provider.

Use the Transport Provider Sample to Receive a Message in Outlook 2007

  1. On the File menu, click New, then click Mail Message.
  2. Type your message.
  3. Click the Microsoft Office Button, click Save As, then click Save As to save the file to the inbox folder you specified during setup.
  4. In the Save As dialog box, browse to the UNC share or local folder that you set as your inbox.
  5. In the Save as type drop down, click Outlook Message Format.
  6. Type a name for the file and click Save.
  7. The file is saved to the shared folder. The MRXP transport provider delivers the message to your Inbox in Outlook.

See Also

About the Sample Transport Provider

Initializing a Transport Provider

Setting Up a Transport Provider

Sending Messages by Using a Transport Provider

Receiving Messages by Using a Transport Provider

Shutting Down a Transport Provider