How to fetch attachment from e-mail.

April 28th, 2005

How to fetch attachment from e-mail? How to fetch any attachment from any e-mail?
Below is the solution in perl.

Task: I receive daily reports as e-mail attachments (for example bank reports), I want to retrieve them and put in the database.

Solution: Perl script - it gets new e-mails from the pop3 e-mail account, fetches attachments, and deletes that e-mails.

Now, whet you’ve got the attachment you can do what you want, for example read it by another script (not necessarily with perl), connect to database and put all data to that database.

Welcome to my homepage…

April 28th, 2005

What you can find here?:
hmm… some information about me and my interests…

  • Linux Distributions
  • PHP
  • Photography