in reply to Automatically getting and reading e-mails

You can receive mails from mail servers either with pop3 or imap. knows lots of modules to do this.

You can also use something like fetchmail to feed them into a local mail box, and read these local files. There's more than one way to do it ;-)

  • Comment on Re: Automatically getting and reading e-mails

Replies are listed 'Best First'.
Re^2: Automatically getting and reading e-mails
by merrymonk (Hermit) on Aug 27, 2008 at 15:48 UTC
    fetchmail looks more than interesting but as ever with
    such things I am not sure where to start.
    Therefore it would be fantastic if a simple
    Perl exmaple was available that included fetchmail
    .

      The best place to start is to read the documentation provided with fetchmail. Under the heading 'CONFIGURATION EXAMPLES' you will find some examples.

      Note that fetchmail just forwards the emails to your local mail server. On linux there is always one running, don't think there is one on a windows machine (and probably we are talking about windows since you said something about Outlook)

      Because of that leocharres script might be a better starting place for you

      As we all can easily understand, your problem, namely to send and read email with perl, is just so specific and rarely occurring that it is very unlikely that anybody has ever had it, let alone asked about it here. But just in case you wanted to check if by some incredible coincidence an event with some ridiculously low probability in the universe did happen and someone did ask a similar question, I recommend you try some specific Super Search.

      --
      If you can't understand the incipit, then please check the IPB Campaign.