| [reply] |
Thanks this one helped me. I am looking for more. But, this is a good starting point where I can get something done.
- Shiva
| [reply] |
Now I have got all the messages and I am trying to get the main parts of the message
From:
To:
Subject:
Body:
I am able to get $msg->{Subject} and $msg->{Text}. how do I get the other 2, also I would need the date and time of message.
Thanks again for your time.
PS: I am using the WIN32::OLE
| [reply] |
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
| [reply] [d/l] |
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.
| [reply] |
| [reply] |
He most probably can't, because he is looking for an alternative to process messages in an Exchange mailbox, where IMAP might not be available. MAPI (accessible via Win32::OLE) is meant exactly for this, while Mail::Oulook is only meant to "overcome the problem of sending mail messages, where Microsoft (R) Outlook (R) is the only mail application available."
| [reply] |