I've worked quite a bit with Outlook but not the express one. Have you had a look at the object model for further reference ? I know you can test to see which sofware you're using and depending on the software choose the appropriate code.
It seems to me you're not using OLE at all. It would probably make it all easier if you had a look at Win32::OLE and Outlook's object model (that is if Express uses the same). Once you access OLE properties, it's really easy to access the reply address. Try this piece of code :
if ( my $outlook = Win32::OLE->GetActiveObject('Outlook.Application
+'))# connect to outlook application
{
if (defined ($outlook->ActiveInspector()))
{
my $activeEmail= $outlook->ActiveInspector()->{CurrentItem};
if ($activeEmail->{Class}==olMail) # if we're dealing with an
+ email item
{
my $emailProperties;
$emailProperties->{Recipients} =$activeEmail->{Recipien
+ts};
$emailProperties->{ReplyRecipients} =$activeEmail->{Rep
+lyRecipients}->ResolveAll();
}
}
}
Good luck...
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.