Jump to content

What is wrong with my email send script?


johnsmith153

Recommended Posts

I know it needs a bit more in terms of checking for errors etc, but this should still send (if correct data in url)

 

It doesnt:

 


$to = "TESTNAME <".$_GET['email'].">";
$subject = "TEST SUBJECT";
$message = "name=".$_GET['name']."&email=".$_GET['email']."&phone=".$_GET['phone']."&terms_conditions=1&x=".$_GET['x']."&y=".$_GET['y']; 
$headers = "MIME-Version: 1.0\r\n"; 
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
$headers .= "Return-Path: ".$_GET['email']."\r\n";
$headers  .= "From: ME <".$_GET['email'].">\r\n";
$headers .= "Reply-To: ".$_GET['email']."\r\n";

mail($to,$subject,$message,$headers)

Link to comment
https://forums.phpfreaks.com/topic/124524-what-is-wrong-with-my-email-send-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.