yaronba has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I have created a mailitem and managed to send it using the outlook win +32::ole api: $mail = new Win32::OLE('Outlook.Application'); $item = $mail->CreateItem(0); $item->{'Subject'} = "This is a test"; $item->{'To'} = "mccoyga\@1fssg.usmc.mil"; $item->{'Body'} = "Here is the meat of the message"; $item->Send(); I even succeded to add attachments. I'm trying to change some more complex things like : 1. changing the attachment format (mime / binhex / uuencode) 2. too choose one of my accounts that I have and not the default one.. +.. How can I do it ??? Whith what properties/objects/methods ???

Replies are listed 'Best First'.
Re: outlook mail API to change properties
by beachbum (Beadle) on Jan 10, 2006 at 20:54 UTC

    ActiveState comes with an OLE browser that may provide what you're looking for. If you select the application (Outlook) it will display the available objects / methods etc.

    Also, the MSDN library at http://msdn.microsoft.com probably has this info.