View Single Post
  #2  
Old September 24th 07, 04:26 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Email address when received internally

How are you retrieving the sender email address? Are you working with
Exchange server? You might be getting an Exchange distinguished name email
address which is in the form usually of something like a bunch of "o=",
"ou=" and "cn=" tags.

Same question for your other post, sending using an Exchange account will
not have a sender email address in the sent email, but you can retrieve the
address from parsing the information from the PR_SENDER_ENTRYID property,
which when converted into a text string has the distinguished name address.

In addition to whether or not you're using Exchange you also need to tell us
what Outlook version you're using and what language you're using for your
code.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"pjerling" wrote in message
...
Hi there,

I'm writing some software to synchronize with Outlook. My goal is to
synchorize emails to the SQL database. When I'm accessing the sender
emailaddress - I receive the correct email address ONLY if the email was
sent
from without the company. As soon as I wish to sync an email received from
one of the members internally I receive some 'rubbish' email address. Any
ideas as to how I can retrieve the correct email address for internal
emails?

Thanks in advance.

Best Regards,
Peter J


Ads