muckv has asked for the wisdom of the Perl Monks concerning the following question:
use Win32::OLE; use Win32::OLE qw(in with); use Win32::OLE::Variant; use Win32::OLE::Const 'Microsoft Outlook'; @attachments = ("output.pdf"); my $Outlook = Win32::OLE->GetActiveObject ('Outlook.Application') || Win32::OLE->new('Outlook.Application'); my $Outlook = new Win32::OLE('Outlook.Application'); # Create Mail Item my $item = $Outlook->CreateItem(0); # 0 = mail item. $attach = $item->{'Attachments'}; $attach->add(@attachments); $item->display();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WIN32:OLE insert attachment into mail object
by Anonymous Monk on Jun 08, 2009 at 14:50 UTC | |
by muckv (Initiate) on Jun 08, 2009 at 18:02 UTC |