Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read email addresses from an outlook folder.
Message
 
 
To
18/10/2004 16:54:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00949317
Message ID:
00952459
Views:
15
You can download Office 2003 Editions: Outlook VBA Language Reference from http://www.microsoft.com/downloads/details.aspx?FamilyId=A1CEAD80-23E2-456F-8618-4DA50CC2C38C&displaylang=en. It should include Oulook Object model. You can also use Intellisense to explore it.

>Thanks, where can I find more information on the syntax.
>
>For instance:
>This adds an email list of sent to emails to a cursor:
>
 CLEAR
>
>LOCAL ;
>loOutlook as outlook.application, ;
>loItem, ;
>lobox, ;
>loNameSpace
>
>loOutlook = CREATEOBJECT("outlook.application")
>loNameSpace = loOutlook.APPLICATION.GetNamespace('MAPI')
>loBox = loNameSpace.Folders(1).Folders('sold')
>*loBox = loBox.Folders('UT')
>*loBox.Items.SORT('To')
>CREATE CURSOR cEmails (email c(200))
>FOR EACH loItem IN loBox.Items
>	INSERT INTO cEmails VALUES (ALLTRIM(loitem.to))
>NEXT lni
>
>SELECT cemails
>BROWSE last
>
>I would like the variable that returns the sent from email address. From internet searches I've been able to assertain:
>.to
>.sent
>.subject
>.body
>
>etc... where can I find a complete list. Or what keyword pulls it up in the MSDN... Thanks.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform