in reply to Sending mail in outlook

I'm no expert on M$ (avoiding like the plague if at all possible), however I'd suggest that the result of the statement:
my $item = $Outlook->CreateItem(0); # 0 = mail item.
is an object, not a hash ... as you are attempting to update. Maybe something along the lines of (untested as I don't have a Windoze box)
$item->Subject($mail_props{'subject'} || '[No Subject]');
. instead of
$item->{'Subject'} = $mail_props{'subject'} || '[No Subject]';
Just a thought ...

A user level that continues to overstate my experience :-))

Replies are listed 'Best First'.
Re^2: Sending mail in outlook
by Anonymous Monk on Sep 14, 2009 at 22:42 UTC
    Tried that but comes up with the same error message. The line that it seems to have trouble with is $item->{'From'} = $mail_props{'to'};
      Have you tried the object browser to inspect the prototype for the method ?

      AFAIR, it (the object browser) is one of the 'tools' available when Excel is running...

      A user level that continues to overstate my experience :-))