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
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";