I have this script:
$to = $_GET["to"];
$subject = $_GET["sub"];
$message = $_GET["message"];
$from = "[email protected]";
$headers = "From:" . $_GET["from"];
mail($to, $subject, $message, $headers);
I go to:
http://chipperyman573.com/[email protected]&sub=Subject&message=Hi&[email protected]
I want to always send it from [email protected]
, however if I want to change the first part (say, to [email protected]
) it won't send. I want to use [email protected]
.
([email protected] is the only one that exists).