To automate Microsoft Outlook, use the Microsoft Outlook Object Library. Information about automating Outlook is divided into the following sections:
The following examples are written for version 10 of the Microsoft Outlook Object Library (Outlook XP). If you use a different version of the object library, you may need to change the code to have it work properly.