in reply to MS Outlook & Win32::OLE


Thank you for your wisdom. I found a VB script and translated it. Here it is, without any error checking:

use Win32::OLE; $mail = new Win32::OLE('Outlook.Application'); $mail->{'Visible'} = 1; $item = $mail->CreateItem(0); $item->{'Subject'} = "This is a test"; $item->{'To'} = "mccoyga\"; $item->{'Body'} = "Here is the meat of the message"; $item->Send(); $mail->Quit();
Again, your time and effort is most appreciated. May I reincarnate to your level, some day.

Replies are listed 'Best First'.
Re: Re: MS Outlook & Win32::OLE
by Anonymous Monk on Nov 21, 2003 at 00:12 UTC
    Can someone lend me some advice on how to get the meat from an array into the Body ? $item->{'Body'} = "Here is the meat of the message"; I can't seem to get the syntax to work on : $item->('Body') = @BODY; or $item->('Body') = print @BODY; Thanks!