in reply to Outlook Express & Perl

OE doesn't really have automation features from what I remember. But you might be able to reproduce what happens when you double-click a .msg file by using the start command:

my $file = "VolleyballBC.msg"; my $cmd = qq{"$Outlook" "$Path\\$file"}; system($cmd) == 0 or die "Couldn't launch '$cmd': $!/$?";

Replies are listed 'Best First'.
Re^2: Outlook Express & Perl
by philc (Acolyte) on Sep 20, 2007 at 12:09 UTC
    #3333.. thanks for the reply...your adaptation works similar to the Win32::Process sample - it opens OE but not the file...I'm beginning to wonder if the file extension is incorrect for OE....when the file is dragged and dropped form OE to the desktop it creates a file without an extension...I've tried no extension and .msg (which is the extension that MS Outlook does)...still tinkering.. cheers pc
      I did determine that OE files dragged and dropped onto the desktop or in a directory have an extension of .eml rather than .msg, which is what Outlook 2003 uses. Still, makes no difference when scripting to open in OE...I'm off to work to try with Outlook 2003