Here's my code for the mail script.
$to = $_POST['to'];
$from = $record->email;
$subject = $_POST['subject'];
$message = stripslashes($_POST['message']);
$headers = "To: $to \r\n";
$headers .= "From: $from \r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html;charset=ISO-8859-9\r\n";
mail($to,$subject,$message,$headers);
When I receive the e-mail it reads as if the e-mail was sent twice to every person the e-mail was sent to...
For example in outlook it says.
TO: Par; Fred; Par; Fred
Gmail says:
par@amp3d.net to me, Fred, me, Fred
However, the email is only going out once. I don't have duplicate e-mails just it comes up twice here... Do I not need the TO portion in the $header?
Also, I can't get an e-mail to go to my e-mail par@amp3d.net. It will go to my gmail account and my college account but not my account on my website.
I've read around and got some information on problems with spam blockers. If that's what is causing it is there anything I can add to the header that will make the spam blocker, in this case spam assassin, not think it is spam?
Thanks guys.