Difference makes the DIFFERENCE
Outlook can function as an email client connecting to the Microsoft Exchange server using a proprietary protocol, as well as to standard mail servers using POP3 or IMAP protocol. It provides a multipane view for easy browsing of your mailboxes. You can use Word to compose email. Moreover, it is bundled with an effective client-side junk mail filtering tool.
It has other components like Calender, Contacts, Tasks, Journal, Notes.
for additional information, please refer to the given below link: Link Address. This link has a pdf file which can be downloaded.
Outlook code written with Outlook VBA is stored in .VbaProject.OTM File.
Outlook Code window is as good as VBA for Excel Code window. Features are similar to that of Excel VBA or Access VBA (as shown below - Source: Google Images)
Most of the code revolves around outlook mails. Outlook also follows Event Driven Programming Model. Event is any activity, which asks the application to do a specific job. There are many types of events, of which, we basically consider Application Events, System Events and User Events. System events are those that are executed when system asks your application for a specific activity. User events are those user actions to which the application responds. The examples of User Events are Click, Right Click, Tab button, Cursor in, Cursor out of text box, user click on drop down list box or also called combo box and many such events follow. Application events are those that are executed by the application (Outlook). Examples are: NewMail Event - which is executed when a new mail is received by Outlook Application., MailSent Event is another event, which is executed when a user sends mail.
The following code will monitor each mail and display appropriate message as given in the code like: Sender mail address, Mail sent date, Mail received time, Mail Subject, Mail size, and the body of the message... all these in a single message box. The following Code is to be written in the ThisOutlookSession, as shown in the above picture.
The following are some of the events at item level. some of them are cancellable events where as the others are not. Each event has a specefic and designed purpose and usage. Like wise, we have events for controls, fields and others. The following link has detailed explanation for each event that exists in Outlook
The following link from Microsoft, can provide you with the list of events at each level:
Event Name at Item Level
Not all the events we use in programming, but on case-to-case basis, depending on the requirement and situation.
We can connect outlook to Ms.Access database as well.