You are here: Webmail and mime « PHP « IT news, forums, messages
Webmail and mime

Posted by Emil on 02/22/05 10:44

Hi

I'm creating a webmail interface for a pop3-server (I know weird to do
webmail with pop3, but it's for a running server which I can't control.
So pop3 it is and caching the mails in a mysql database). I've
implemented the pop3-support myself since the one in www.php.net/imap
lacks a lot of basic pop3 features like uidl support.

Anyway I've hit a wall trying to add support for receiving attachments.
I'm not sure how to handle it. The imap_fetchstructure call doesn't seem
to be useful for me, since I can't send it text but only an imapstream.
I tried the pear projects mimeDecode class and it worked fine. But the
only thing it returns was the structure (like it will return an array
with info like one mime part plain text, one part image, etc.) and not
the content. I don't get the actual text and the actual image.

Any ideas of how I can get the content split up in neat pieces? I've
probably just missed something obvious in www.php.net/imap or the pear
mail classes. Because I guess there are a function that does this.

I need this running noooow. So I'm sort of desperate. If you have any
ideas at all please please speak.

Thanks.

Regards Emil

 

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

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