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