M
Mark
I have automated Outlook from both VB and C# but I am
having confusion with what should be a very simple
operation.
I cannot find a property that returns a consistently
useful and complete email address for the message sender.
From the MailItem object you can only get the sender's
name.
If I create a reply and look at the recipient address or
the address associated with recipient.AddressEntry they
both agree with one another but the address isn't always
in the (e-mail address removed) representation.
In the case of exchange originated email the
inconsistancies go so far as having multiple
representations for different messages originating from
the same organization:
ex1:
addEntry Address: /o=EXCHORG/ou=First
Administrative Group/cn=Recipients/cn=FirstNameLastName
ex2:
addEntry Address: /o=EXCHORG/ou=First
Administrative Group/cn=Recipients/cn=FirstName@bar
SMTP mail that i've checked does seem to be in the
traditional (e-mail address removed) format but is it always so?
Finally, if I call AddressEntry.Details on the reply's
recipient (the original sender) the dialog that is
displayed contains a tab that has a list of name:value
pairs that describe the valid mail transports and their
associated email addresses.
This is the information that i really want access to. How
do I access this list? What am I missing that is making
this so hard?
Thanks
Mark
having confusion with what should be a very simple
operation.
I cannot find a property that returns a consistently
useful and complete email address for the message sender.
From the MailItem object you can only get the sender's
name.
If I create a reply and look at the recipient address or
the address associated with recipient.AddressEntry they
both agree with one another but the address isn't always
in the (e-mail address removed) representation.
In the case of exchange originated email the
inconsistancies go so far as having multiple
representations for different messages originating from
the same organization:
ex1:
addEntry Address: /o=EXCHORG/ou=First
Administrative Group/cn=Recipients/cn=FirstNameLastName
ex2:
addEntry Address: /o=EXCHORG/ou=First
Administrative Group/cn=Recipients/cn=FirstName@bar
SMTP mail that i've checked does seem to be in the
traditional (e-mail address removed) format but is it always so?
Finally, if I call AddressEntry.Details on the reply's
recipient (the original sender) the dialog that is
displayed contains a tab that has a list of name:value
pairs that describe the valid mail transports and their
associated email addresses.
This is the information that i really want access to. How
do I access this list? What am I missing that is making
this so hard?
Thanks
Mark