|
-
Dec 7th, 1999, 07:53 AM
#1
Thread Starter
New Member
Recently, I am thinking a way to retrieve e-mail content from OE 5.0 to a text box on a VB(6.0) form.
I've added to OE 5.0 type library onto my project but could not figure out how to put in the correct settings to make the control works. I've tried to use Data Bindings property of the control, but there are no options for Data Source available to choose.
Can anybody give me a hand on this problem?
-
Dec 7th, 1999, 08:42 PM
#2
Lively Member
This might help.
Use Items(index), where index is the index number of a mail message to return a single MailItem object from an Inbox folder. The following example sets the current folder as the Inbox and displays the second mail message in the folder.
Place the following in any event.
Code:
Set myOlApp = CreateObject("Outlook.Application")
Set myNamespace = myOlApp.GetNamespace("MAPI")
Set myFolder = myNamespace.GetDefaultFolder(olFolderInbox)
Set myItem = myFolder.Items(2)
Text1.Text = myItem.Body
------------------
Ishamel
[email protected]
[This message has been edited by Ishamel (edited 12-08-1999).]
-
Dec 9th, 1999, 02:58 AM
#3
Thread Starter
New Member
Thanks Ishamel.
However, the code you provided is just for Outlook not for Outlook Express 5.0.
Do you know how can I create object of Outlook Express 5.0 on my VB 6.0 project? It'll be great if you have any idea on this, I've been searching articles regarding this in the past few days but still could not get a crew.
-
Dec 9th, 1999, 06:29 PM
#4
-
Dec 12th, 1999, 12:40 PM
#5
Thread Starter
New Member
I seems I am getting closer now.
I've find the object name. It's OutlookExpress.MessageList and it works fine when I use the CreateObject function in VB. However, the next problem is that the properties in the MessageList object are totally different from those in Outlook.Application. Is there any documentation I can check into how to use the OutlookExpress.MessageList properties ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|