0

我有这个脚本:

$to      = $_GET["to"];
$subject = $_GET["sub"];
$message = $_GET["message"];
$from    = "admin@chipperyman573.com";
$headers = "From:" . $_GET["from"];
mail($to, $subject, $message, $headers);

我去:

http://chipperyman573.com/THEURL?to=myemail@gmail.com&sub=Subject&message=Hi&from=admin@chipperyman573.com

我想总是从 发送它admin@chipperyman573.com,但是如果我想更改第一部分(比如,到personal@chipperyman573.com)它不会发送。我想用admin@chipperyman573.com.

(admin@chiperyman573.com 是唯一存在的)。

4

0 回答 0