Hi there, just getting started with this one, and didn't know where so I had a look around the monastery. I found the following
node, How do I send E-mail via Microsoft exchange server from my Perl Program? and just copy / pasted the code.
I modified it slightly for trouble shooting, and so I would be able to logon ok...
use Win32::OLE;
use strict;
# Create a new MAPI session
my $session = Win32::OLE->new("MAPI.Session")
or die "Failed to create a new MAPI Session! " . $!;
Are the first few lines, and that is where it is dying, with the following error message.
C:\Documents and Settings\GO\Desktop>test.pl
Failed to create a new MAPI Session! Bad file descriptor at C:\Documen
+ts and Set
tings\GO\Desktop\test.pl line 5.
Using windows 2k professional, and perl v5.8.1.
I have never tried to do this before and so am a bit stumped.
Any ideas much appreciated.
Regards,
Gerard
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.