You can do this from Perl if you wish. What follows is VBA code that does
almost everything you want. You will have to convert it to Win32 Perl. (Hey,
I can't do everything for you.)

What is excluded is info regarding the username and password. This info is
definitely in the Outlook VBA help file. See how to do it in Outlook VBA
then simply convert the code to Win32 Perl. I have done the same thing with
Access VBA and it is fairly simple. Please refer to the link "Using OLE with
Perl" in the ActivePerl help file. There are many examples.

---------------BEGIN OFFENSIVE M$ CODE HERE-------------------------
Sub SendFile()
    Dim ol As Outlook.Application
    Dim olMail As Outlook.MailItem

    Set ol = New Outlook.Application
    Set olMail = ol.CreateItem(olMailItem)

    With olMail
        .Recipients.Add "[EMAIL PROTECTED]"
        .Subject = "My subject goes here."
        .Body = "This is a test."
        .Attachments.Add "E:\Documents\attachment.doc", olByValue
        .Send
    End With

    Set ol = Nothing
    Set olMail = Nothing
End Sub
----------------END OFFENSIVE M$ CODE HERE--------------------------

-----Original Message-----
From: Hello Buddy [mailto:hello_buddy_001@;yahoo.com]
Sent: Tuesday, October 22, 2002 9:44 PM
To: [EMAIL PROTECTED]
Subject: Wants to know about outlook with perl


Hi,
     I am totally beginner in Perl and programming. I
have no experience before. I want to know that "is it
possible to do with perl script to write and send the
mail for outlook without opening outlook
application?".
     What I mean is I just enter user name and
password for outlook account and give the text file of
message to perl and I want perl to do it
automatically. Thanks in advance for your answers.

Best regards
Aung

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to