Re: [fw-general] How to store attachment files into a location in server

2009-02-17 Thread phpbrat
Hi Anees, How to fetch all the attachments in a single mail ?? the code below downloads only the first attachment in a mail and not the other ones.. when fetching for other parts of the mail ie $part = $message->getPart(3 or 4 ); it doesn't wor

Re: [fw-general] How to store attachment files into a location in server

2009-02-11 Thread phpbrat
Hi Anees, How to fetch all the attachments in a single mail it downloads only the first attachment in a mail and not the other ones.. when fetching for other parts of the mail ie $part= $message->getPart(3 or 4 ); it doesn't works ! plz

Re: [fw-general] How to store attachment files into a location in server

2009-02-10 Thread phpbrat
Hi anees Thx for the continous help instead .. One thing more here . i am getting only the first attachment of a mail getting downloaded . How to download all the attachments in a single mail... ? Anees wrote: > > > Yes, I think there should be some methods to do some tricks with POP3 > >

Re: [fw-general] How to store attachment files into a location in server

2009-02-10 Thread Anees
Yes, I think there should be some methods to do some tricks with POP3 i just checked and saw the method void setFlags (int $id, array $flags) from the Zend_Mail_Storage_Writable_Interface class just try with this mean while i too have a check with it. phpbrat wrote: > > > but i wanted

Re: [fw-general] How to store attachment files into a location in server

2009-02-10 Thread Anees
Hi, The code which i have used for listing the Mails is not filtering any messages By default it is listing all the messages from the POP3 mail server phpbrat wrote: > > I want to list ALL messages from INBOX whenever i access through the > script .. > Presently the script lists the NEW messa

Re: [fw-general] How to store attachment files into a location in server

2009-02-10 Thread phpbrat
Ya ur right .. but i wanted to share with you that i m getting only those messages listed that are just newly mailed to the server and once i access thru the script .. on coming again i don't get any untill 'n unless there is new one on the server ? i dont't have any idea bout this .. maybe u can

Re: [fw-general] How to store attachment files into a location in server

2009-02-10 Thread phpbrat
Hi anees , thx a lot for the help.. it works great ! One thing more here' I want to list ALL messages from INBOX whenever i access through the script .. Presently the script lists the NEW messages only and not those which were earlier accessed thru this script. Is there any workaround for this??

Re: [fw-general] How to store attachment files into a location in server

2009-02-06 Thread Anees
Hi am just including the core part of the attachment saving 'mail.mailserver.com','user'=>'u...@server.com','password'=>'pass123')); //This foreach loop is using to saperate each message as the number of messages $msg= 0;

Re: [fw-general] How to store attachment files into a location in server

2009-02-06 Thread phpbrat
Hi Anees, i want to download attachment from a pop3/imap mail account using Zend framework .. Can you please help me with this ? the script flow.. Thanks in advance. Brat Anees wrote: > > > > Anees wrote: >> >> >> $fh = fopen($name,'w') or die("can't open file"); >> fwrite($fh,$content)

Re: [fw-general] How to store attachment files into a location in server

2008-11-28 Thread Anees
Anees wrote: > > > $fh = fopen($name,'w') or die("can't open file"); > fwrite($fh,$content); > fclose($fh); > Hi there was a mistake where i used fopen. I given the saving location as $sitename."/dir".$filename instead $_server['DOCUMENT_ROOT']."/dir/".$filename Thanks again i am looking f

Re: [fw-general] How to store attachment files into a location in server

2008-11-28 Thread Anees
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 = $

Re: [fw-general] How to store attachment files into a location in server

2008-11-28 Thread j5
Perhaps Anees is looking for an efficent file storage algorithm? In order to organize the attachment files on the server so you wont run into max file per directory limits? If so, I am looking for some ideas on this as well. Anees wrote: > > Hi > > i am developing a module that sores all emai

Re: [fw-general] How to store attachment files into a location in server

2008-11-28 Thread Bruno Friedmann
Anees wrote: > Hi > > i am developing a module that sores all emails coming to an account into a > database > and i have succeeded in that using Zend_Mail_Storage_Pop3 calss > > and also i am getting the information about the attachments that sending > with mail > i can display it, download it..

Re: [fw-general] How to store attachment files into a location in server

2008-11-28 Thread Martijn Korse
Anees wrote: > > [...] > But i need to store the file into a location in server > how i can do this? > with 'the file' you mean the attachment? What is your problem exactly? Don't you know the php-command for opening and writing to a file? Are you concerned about security? etc. - http://

[fw-general] How to store attachment files into a location in server

2008-11-28 Thread Anees
Hi i am developing a module that sores all emails coming to an account into a database and i have succeeded in that using Zend_Mail_Storage_Pop3 calss and also i am getting the information about the attachments that sending with mail i can display it, download it.. (using header() function ) Bu