cormanaz has asked for the wisdom of the Perl Monks concerning the following question:
use Win32::OLE; use Win32::OLE::Variant; use Win32::OLE::Const 'Microsoft Outlook'; my $Outlook = Win32::OLE->GetActiveObject('Outlook.Application'); my $ol = Win32::OLE::Const->Load($Outlook); my $namespace = $Outlook->GetNamespace("MAPI"); my $Folder = $namespace->Folders('mymail')->Folders('Inbox'); my $n = $Folder->Items->Count; for ($i=$n; $i>0; $i--) { my $msg = $Folder->Items($i); my $to = $msg->{'To'}; }
If the message retrieved has a header entry for To like Joe Blow <joe.blow@foobar.com>, rather than just a raw e-mail address (which is often the case) then $to just contains "Joe Blow". I want the e-mail address (or the full string from the header). Does anyone know how to get it?
TIA...Steve
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Win32::OLE & Outlook getting the actual email addresses
by cormanaz (Deacon) on Jul 26, 2008 at 21:13 UTC | |
by blahblahblah (Priest) on Jul 27, 2008 at 15:51 UTC | |
Re: Win32::OLE & Outlook getting the actual email addresses
by cormanaz (Deacon) on Jul 27, 2008 at 18:47 UTC | |
by Latha sree (Initiate) on Nov 25, 2011 at 09:41 UTC | |
by Anonymous Monk on Nov 25, 2011 at 09:44 UTC | |
by Latha sree (Initiate) on Nov 25, 2011 at 09:49 UTC | |
by Anonymous Monk on Nov 25, 2011 at 09:59 UTC | |
|