Jump to content

download email attachments


mariom

Recommended Posts

hey guys, i found the solution.

After finding the email, i needed to add this code

$mege = imap_fetchbody($mbox,$jk,$fpos);  
//open mailbox,msg_number,file position
				$filename="$filename";
//get file name from fetch_imapstructure
				$fp=fopen($savedirpath.$filename,w);
//save file to local directory
				$data=$this->getdecodevalue($mege,$part->type);	

				fputs($fp,$data);

				fclose($fp);

 

hope this helps someone

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.