M
mr
In Outlook 2002 there is no SenderEmailAddress, so i am trying to use the
suggestion in KB 324530 OL: How to Programmatically Retrieve Fully Qualified
E-mail Addresses,
The suggestion there is to create a reply and then get the email address
from the reply message:
I have created the code shown below to do just that. i create the reply but
the recipient collection is empty! am i leaving out a step?
MailItem mi = null;
MailItem miReply = null;
Microsoft.Office.Interop.Outlook.Recipients recips = null;
Microsoft.Office.Interop.Outlook.Explorer ox =
applicationObject.ActiveExplorer();
mi = ox.Selection[1] as MailItem;
miReply = mi.Reply();
recips = miReply.ReplyRecipients;
recips.count equals 0!
what am i doing wrong?
(p.s. is there a way to avoid the security message that pops up when you
access the sender information?)
suggestion in KB 324530 OL: How to Programmatically Retrieve Fully Qualified
E-mail Addresses,
The suggestion there is to create a reply and then get the email address
from the reply message:
I have created the code shown below to do just that. i create the reply but
the recipient collection is empty! am i leaving out a step?
MailItem mi = null;
MailItem miReply = null;
Microsoft.Office.Interop.Outlook.Recipients recips = null;
Microsoft.Office.Interop.Outlook.Explorer ox =
applicationObject.ActiveExplorer();
mi = ox.Selection[1] as MailItem;
miReply = mi.Reply();
recips = miReply.ReplyRecipients;
recips.count equals 0!
what am i doing wrong?
(p.s. is there a way to avoid the security message that pops up when you
access the sender information?)