I'm aware you can get premade php mailing classes, but I'm stubborn and want to get it to work without all that...
Whenever I send an email to my hotmail address it goes in the junk folder which I don't want. I don't understand why though.. Are my headers wrong?
Here's a snippet:
I'd appreciate any help on this!
Whenever I send an email to my hotmail address it goes in the junk folder which I don't want. I don't understand why though.. Are my headers wrong?
Here's a snippet:
Code:
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: [email protected]' . "\r\n";
$headers .= 'Reply-To: [email protected]' . "\r\n";
$headers .= 'Return-Path: [email protected]' . "\r\n";
$headers .= 'X-Mailer: PHP/' . phpversion() . "\r\n";
// prepare email body text
$Body = "";
$Body .= "Message: ";
$Body .= $Message;
$Body .= "\n";
// send email
$success = mail($EmailTo, $Subject, $Body, $headers);
I'd appreciate any help on this!
