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