Franck,
I hope you found an answer to your encoding question, and that you didn't go crazy!
You said that you saved the MSword file to your web server. This is the very thing I'm struggling with. How did you get it to work?
Here's the code I'm trying to use:
$image = trim(@imap_fetchbody($mBox, $msgNo, "2"));
$copy = @fopen( "/httpd/htdocs/uploads/".$filename,"w");
if(!$copy) echo "<br><br>Cannot upload file to "." /httpd/htdocs/uploads/".$filename;
else {
fputs($copy, $image);
fclose($copy);
}
Thank you!