Hi!
I'm trying to send e-mails with the mail() function in PHP. Everything seems to work with the mail-to adress, title, and the message-text, but for some reason, my mail-headers are just ignored by about every mail-client. I'm now trying the following :
=========================================
$ExtraHeaders = ("From: ". $MailFromAdress
."Reply-To: ". $MailFromAdress
. "MIME-Version: 1.0 "
. "\nContent-type: text/html; "
. "charset=iso-8859-1\r\n"
. "X-Mailer: PHP");
mail("$MailToAdress", $MailTitle, $ShortMessage, $ExtraHeaders);
Of course, the $MailToAdress, $MailTitle and $ShortMessage variables are valid strings. The problem with my headers are that they aren't read as headers, but they're put in the message body. BTW : I've tried about every combination of \r and \n by now, but that doesn't seem to do the trick. Who can help? Thanks!