You are here: Re: PHP & IMAP forwarding & attachments « PHP Programming Language « IT news, forums, messages
Re: PHP & IMAP forwarding & attachments

Posted by Janwillem Borleffs on 11/15/85 11:25

elyob wrote:
> I've got the IMAP checking etc etc working just fine. However this
> will be more troublesome if someone includes an attachment. Firstly,
> the imap_body($mbox,$num) chucks out loads of gobbledygook[1] at the
> moment. I guess this is the real code behind, but how should I
> forward that?

You should forward it as is, because it's base64 encoded binary data.

> Also, can I reject any attachments easily?
>

You can analyse each part of the message with the imap_fetchstructure
function, after which it's just a matter of selecting the part you want to
use in the forwarded message with the imap_fetchbody function.


JW

 

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

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