<?xml version="1.0" encoding="windows-1252"?>
<node id="1008250" title="OUTLOOK new mail with attachment" created="2012-12-11 04:29:44" updated="2012-12-11 04:29:44">
<type id="115">
perlquestion</type>
<author id="531275">
harryC</author>
<data>
<field name="doctext">
&lt;p&gt;I only want to start outlook on de screen not in the background. Create a new mail and add a attachment.&lt;/br&gt;So that the user can fill in the addresses,subject and the mail content and send the mail from the screen.&lt;/br&gt;The same as in OpenOffice send document as attachment.&lt;/br&gt;How do i do this ?&lt;/br&gt;I looked around and always find code which sends mail in the background.&lt;/br&gt;Thks for your help
HarryC
&lt;code&gt;
my $Outlook = Win32::OLE-&gt;GetActiveObject
                           ('Outlook.Application') ||
               Win32::OLE-&gt;new('Outlook.Application');
$Outlook-&gt;{'Visible'} = 1;
&lt;/code&gt;
&lt;p&gt;does not work&lt;/br&gt;Win32::OLE(0.1709) error 0x8002000e: "Ongeldig aantal parameters"
    in PROPERTYPUT "Visible" at D:\scripts\outlooktest.pl line 11&lt;/p&gt;
&lt;/br&gt;Thks for your help
HarryC</field>
</data>
</node>
