Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting sender's email from Outlook
Message
 
 
To
23/04/2003 23:47:19
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00780990
Message ID:
00780991
Views:
7
>From this code:
>
>
>LOCAL loOutlook,loNS,loInbox,loMailItems,lnItem
>loOutlook=CREATEOBJECT('Outlook.Application')
>loNS=loOutlook.GetNameSpace('MAPI')
>loInbox=loNS.Folders('Personal Folders').Folders('MyFolder')
>loMailItems=loInbox.Items
>CLOSE ALL
>USE Email
>DELETE ALL
>FOR lnItem=loMailItems.Count TO 1 STEP -1
>   loItem=loMailItems.Item(lnItem)
>   APPEND BLANK
>   REPLACE AddDate WITH loItem.CreationTime
>   REPLACE Sender WITH loItem.SenderName
>   REPLACE Subject WITH loItem.Subject
>   REPLACE Notes WITH loItem.Body
>   REPLACE To WITH loItem.To
>NEXT
>
>
>I need to be able to store the sender's email as well. Anyone knows how to do it?

Check
- Re: Outlook - Need senders eMail address Thread #700806 Message #701866
- Re: Outlook - Need senders eMail address Thread #700806 Message #701722
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform