Hi
Thanks for your reply Martin, Bruno n j5
I just read the messages of an email address using Zend_Mail_Storage_Pop3
$mail = new Zend_Mail_Storage_Pop3(array('host'=>
host.com','user'=>'[EMAIL PROTECTED]','password'=>'pass'));
i took a particular message (it includes attachment)
$message = $mail->getMessage(3);
taken the second aray element of its
$part = $message->getPart(2);
Took the content part of it
$content =base64_decode($part->getContent());
get content type, file name,..
$cnt_type = explode(";" , $part->contentType);
$name = explode("=",$cnt_typ[1]);
but couldnt able to store into any location
Though Bruno mentioned to store it into DB as blob, i prefer to store into
directory as files and just file name into DB. so that we can just dont want
to keep track other information like content type, size,etc..
i tried the normal PHP file writing code to write the data
$fh = fopen($name,'w') or die("can't open file");
fwrite($fh,$content);
fclose($fh);
but getting failed
i think am making some silly mistake somewhere
But still i am looking for native methods from Zend to manage file related
operations.
Regards
Anees
--
View this message in context:
http://www.nabble.com/How-to-store-attachment-files-into-a-location-in-server-tp20732847p20743725.html
Sent from the Zend Framework mailing list archive at Nabble.com.