in reply to Controlling Email on Windows with Perl

Forewarned: I'm a linux guy without a windows box to look at.

I've heard that you can use Win32::OLE to send messages via a MAPI object, but I don't know if it can be used from "within" outlook.
  • Comment on Re: Controlling Email on Windows with Perl

Replies are listed 'Best First'.
Re: Re: Controlling Email on Windows with Perl
by punkish (Priest) on Apr 16, 2004 at 04:45 UTC
    Aaaah, the beauty. You, "linux guy," I direct my warmest regards to you. Your suggestion of using Net::POP3 works like a charm against Exchange. To hell with Outlook and such nonsense. Perl, once again, saves the day.

    Much gratitude.

    However, this is a "pull" from my perl script... I would have to set up a cron task and run the script periodically. A better solution would be if I can have the email server "kick" the script into action when a specific email is received? For that I will need access to the script from within the email server! Any ideas for that?

    If I can't solve this then I will set up a periodic task, however, the latter would be more elegant.

      Yes that would be more elegant. If I were setting up such a system on a linux server, something like bugzilla's bugmail script (for instance), I'd use procmail to trigger the script when I received a message from the mail server. Does Exchange have such a concept?