You are here: Re: [reading email] How to save the attachments? « PHP Programming Language « IT news, forums, messages
Re: [reading email] How to save the attachments?

Posted by bill on 07/31/07 10:08

Rik wrote:
> On Thu, 26 Jul 2007 10:49:30 +0200, <sonja.chevre@gmail.com> wrote:
>
>> Hello !
>>
>> I'm looking for a script which allows me to read emails and attachment
>> from a pop server (then I'll save the email's text in a db and the
>> attachments on the server).
>>
>> So I have found this article:
>> http://www.phpit.net/article/read-email-php-pop3/
>>
>> ...
>> $email = $pop3->get_mail($i); // how to get the email
>> ...
>>
>> But then how do I get the information about my attachments and how can
>> I save them?
>
> Aside from the correct notes from David, there are several packages who
> can do this for you without having to reinvent the wheel. Several come
> to mind:
>
> 1. <http://nl2.php.net/manual/en/ref.imap.php>
> 2. <http://nl2.php.net/mailparse>
> 3.
> <http://pear.php.net/package/Mail_mimeDecode/docs/latest/Mail_Mime/Mail_mimeDecode.html>
>
>

http://nl2.php.net/mailparse results in a 404

http://us2.php.net/manual/en/ref.mailparse.php works

bill

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация