Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mapi
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Re: Mapi
Divers
Thread ID:
00639854
Message ID:
00639857
Vues:
19
Hi David,

>I am using the outlook.application object and I am trying to access the >senders email address from the mailitem object. It has a sendername >property but not an email address property. Does anybody know whether I can >access the email address property

I used Nigel Coates' MAPI class (which I think can be found in the downloads section here on UT) to learn a lot of what i know about the MAPI. Looking at the code he uses to get the sender's e-mail address (the class's GetSender method), there appears to be a MsgOrigAddress property. He then strips the "SMTP:" section of thsi out to get the e-mail address.

I use this myself to identify registered users for one of my automated systems... the only problem I have found is when using it internally wherein the MsgOrigAddress property holds the Exchange User address rather than the external e-mail address.

Hope this helps,

Ben
Ben Sugden

"Remember to enjoy hunting - and that means relishing the search for the product that has never been advertised or placed handily at the front of the shop; Life begins on the uppermost shelf, avoid guide books and top 10's like the plague." - Ramsey Dukes
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform