Weird problem with PHP mail() under Linux.
- by Vilx-
This is the case when it "works on my machine". Except that my machine is Windows, and the target is some sort of Linux.
The idea is that the mail() function puts a newline between the MIME-Version and Content-Type headers, thus breaking the whole thing. Here's the code, simpliefied as much as possible:
<?php
$HTMLPart =…