Re: [fw-general] [Zend_Mail] How to get an attached files ?

2008-12-19 Thread Nico Edtinger
It depends on the mail. The name of the part is in the Content-Type header, the filename of the attachment in Content-Disposition. To extract parts of a header like Content-Type you can use the method getHeaderField($header_name, $part);. Without $part you get the first field, which doesn't

[fw-general] [Zend_Mail] How to get an attached files ?

2008-12-16 Thread Grooters Erwan
Hi, I'm currently working on a script to take mail from a pop3 server. Everything works correctly excepted to get back an attached file. In fact I can't find the name of attached file. this is the code I have (directly inspired from doc): echo $mail->countMessages() . " messages found\n";