$link=imap_open("{$server/pop3:110}INBOX", "$user", "$pass",OP_SILENT);
here is how I get the filename of an
attachment:
$attach=imap_fetchstructure($link, $num);
$attachment=$attach->parts;
while (list ($key, $val) = each ($attachment)) {
echo "";
echo "<br>";
echo "$val->bytes";
$dis=$val->parameters;
while (list ($key, $val) = each ($dis)) {
echo "$val->value";
echo "<br>";
}
I am unable to download it so if you can download attachments shoot me an email and let me know..
--Thomas