Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to put mail in OE or OEX from VFP6?
Message
From
01/02/2003 07:41:11
 
 
To
01/02/2003 06:50:47
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00745656
Message ID:
00747989
Views:
35
Hello Rolf.

It is of course best to handle everything in VFP code, instead of modifying an external program. But it is possible in Outlook, by a few mouse clicks to transfer the entire contents of the Outlook Inbox to a VPF table.

Outlook creates the table all by itself.


Outlook does indeed have an import/export ability. However, if you read Whil's article, you will discover that getting your ionformation out of Outlook is not as easy as you might think.

This is from our KitBox column last October:

Andy: I can't possibly break a confidence, so let's pretend for the moment that it was our esteemed editor. Now what he (I'm sorry, that should have been "this anonymous person") wants to do is to extract e-mails from Outlook's InBox into a Visual FoxPro table.

Marcia: Well that ought to be easy enough because Outlook has an export wizard (though it isn't installed by default) that includes the option to export e-mail to a FoxPro table. What's wrong with that?

Andy: Ah yes, unfortunately, you cannot get at all of the data using the wizard. Some vital pieces of information (including the date and any attachments) are just not available.

In Whil's article he writes about how hard it was to extract the name and e-mail address of the sender of the e-mail.

As I said before, getting information outr of Outlook is not quite as easy as you think.

Why don't you get a copy of the November 2002 FoxTalk and use the code from Whil's article? It really does work, you know < s >.

The other approach, by using VFP code is a bit more complex, but I may eventually learn how to do it. At present, I stumble at the definition of a class, and get 'Class definition SESSION not found.'

Is that because I am using VFP6.0?


No. Unless you are pre-SP3. If I recall correctly, the session class was introduced in VFP SP 3. But if you are still using version 6, you should at least have all the service packs...and there were 5 of them. If you are up to date, typing ?VERSION(1) in the command window should tell you that your version is Visual FoxPro 06.00.8961.00 For Windows. It is dated August 18th, 2000.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform