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]
|