Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

access & dwnload attachment from webmail in php

Jul 14, 2005 5:11PM PDT

Hello,

I can access a remote POP3 mailbox but i want to dwnld the attachment in the mail.
$struct=imap_fetchstructure($mbox,$cntr);
foreach ($struct->parts as $part)
{
if ($part->disposition=="ATTACHMENT")
{ echo "Filename: ".$part->dparameters[0]->value;
}
}

How do i dwnlod the File which is the attchment
Using PHP,Linux

Thanks
tyrant

Discussion is locked