And thx for this brilliant classes and for all the explanations.
Your parser & example work well and I 'm now less a newbie in PHP ;) and I get all mails attachement (& inline) in the folder tmp !
Regarding now the whole process to implement, I have one issue when getting the file using STDIN and your method :
FYI my STDIN is working well, with other Php script on my server (Php5)
- I first tried your approach : $message_file = file_get_contents("php://stdin");
and nothing in the folder tmp
- Then I tried my method working in my other script, but not working with your class
$message_file = '';
$file = fopen('php://stdin', 'r');
$message_file .=fgets($file, 1024);