years ago … 2003-05-28 06:56

while trying and trying to get text and html mails run… (both: Win / linux:
the one and only fault i made is the the „boundary“ definition!
create your own boundary:
$myboundary = "NO_SPACES_SIMPLE_LETTERS_MY_NAME". md5(rand()) ."";

define the boundary:
// in one line
$headers .= "Content-Type: multipart/mixed; boundary=\"$myboundary\"\n";

// using the boundary: "--" starts it
$headers .= "--$myboundary"

// ending it "--" at least!!!
$headers .= "--$myboundary--"