note 16981 deleted from function.imap-fetchstructure by jimw

From: Date: Fri, 14 Dec 2001 19:17:59 +0000
Subject: note 16981 deleted from function.imap-fetchstructure by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22634@lists.php.net to get a copy of this message
There is a way to retrieve attachments: <?php $link=imap_open("{imap.server.com}","user","pass"); $structure=imap_fetchstructure($link,$message_num); if(isset($structure->parts)) { echo "Attachments: "; while(list($key,$val) = each($structure->parts)) { if($key>0){ if($val->ifparameters == true) { $attach=$val->parameters; echo "".$attach[0]->value.""; } } } } ?>

« previous php.notes (#22634) next »