H
Hash
I'm working on a small application that takes email from Outlook 2003 and
exports the senders email address, the recipients email address, subject and
body of a mail item into a flat text file.
Everything is working great, with a small caveat...
I cannot seem to retrieve the email address of the sender if they sent the
mail through Exchange. Likewise, I cannot retrieve the recipients email
address. All I get is the users full name in Active Directory.
For example, if the recipient of the mail was (e-mail address removed), and I
try this:
writer.WriteLine("To: " + mail.To)
I will get "John Smith" as the output string. I really need the email
address though!
The same goes for the "SenderEmailAddress" function.
Everything is fine otherwise when the mail is to/from someone outside the
company.
Is there a way to solve this problem without having to get into looking up
things in the address book?
Thanks a bunch!
exports the senders email address, the recipients email address, subject and
body of a mail item into a flat text file.
Everything is working great, with a small caveat...
I cannot seem to retrieve the email address of the sender if they sent the
mail through Exchange. Likewise, I cannot retrieve the recipients email
address. All I get is the users full name in Active Directory.
For example, if the recipient of the mail was (e-mail address removed), and I
try this:
writer.WriteLine("To: " + mail.To)
I will get "John Smith" as the output string. I really need the email
address though!
The same goes for the "SenderEmailAddress" function.
Everything is fine otherwise when the mail is to/from someone outside the
company.
Is there a way to solve this problem without having to get into looking up
things in the address book?
Thanks a bunch!