cooldude832 Posted November 25, 2007 Share Posted November 25, 2007 I have figured out I can't mail cause of these headers, but nor do I see an issue in them any idea??? <?php $headers = "From: [email protected]\r\n"; $headers .= "Reply-To: [email protected]\r\n"; $headers .= "Return-Path: admin@servercom\r\n"; $headers .= "BCC: reservations@servercom\r\n"; if(mail($to,$subject,$message,$headers)) { header("location: ".THANK_PAGE); } else{ echo "To: ".$to."<br />Subject: ".$subject."<br />Headers: ".$headers."<br /><br />".$message; } ?> I have checked it removing headres and it is fine so i am a bit confused Quote Link to comment https://forums.phpfreaks.com/topic/78823-do-these-email-headers-look-okay/ Share on other sites More sharing options...
phpSensei Posted November 25, 2007 Share Posted November 25, 2007 try $headers = "From: [email protected]\r\n". "From: [email protected]\r\n". "Return-Path: admin@servercom\r\n". "BCC: reservations@servercom\r\n"; Quote Link to comment https://forums.phpfreaks.com/topic/78823-do-these-email-headers-look-okay/#findComment-398905 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.