in reply to Perl MAPI to access Exchange Server

A small script to use outlook for this
use warnings; use strict; use Win32::OLE; my $outlook = new Win32::OLE 'Outlook.Application' ; $outlook or die "Could not get OLE object for outlook"; my $mailitem = $outlook->CreateItem(0); $mailitem->{'Subject'} = 'A test'; $mailitem->{'Body'} = 'Omnes homines, qui sese praestari volunt, .. +.'; $mailitem->{'To'} = 'mailaddress'; $mailitem->Send(); $mailitem->Quit; $outlook->Quit;
The e-mail address should be modified, of course
It also generates a warning message , generated by outlook, to prevent the automatic generation of such messages. Outlook server settings may prevent that, but I don't know the details.
Tabari

Replies are listed 'Best First'.
Re^2: Perl MAPI to access Exchange Server
by funnybool (Initiate) on Apr 16, 2008 at 10:13 UTC
    Hi, I'm writing a perl script to access an Exchange Inbox. Did you managed to do it ? For instance, I'm only able to do this through an Outlook instance. But I would like to connect directly to the Exchange Server. I will be very pleased if you could advice me . Thanks.