Group,

First of all thanks to all who have written on this subject up until this
point. I have learned a lot - but......
I have a problem - actually two.....


I have the following code:

#!c:\perl\bin\perl.exe


use Win32::OLE qw( in );
my $path = 'c:\web\html\download\requisition\IT66_0.rtf';

$mail = new Win32::OLE('Outlook.Application', 'Quit');
$mail->{'Visible'} = 1;
$item = $mail->CreateItem(0);
$item->{'Subject'} = "This is a test of a perl script sending mail";
$item->{'To'} = "webmaster\@mcdss.org;norrisj\@mcdss.org";
$item->{'Body'} = <<EOD;

Bob,

Attachment test

EOD

$item->{'Attachments'}->Add($path,olByValue,1,'thefile');

                                        
$item->Send();
$mail->Quit();

1) The mail gets sent fine - but the attachment does not go.  What am I
doing wrong?
2) Outlook comes up with a window saying that some one wants to use it - is
it ok with me? - How do I shut this off?
3) Outlook shuts down after and I want to leave it running - ???? ( I know
its three questions - sorry)

Thanks to all  :>)

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to