$to = 'someone.com';
$firstname = $_POST["fname"];
$lastname = $_POST["fname"];
$subject= $_POST["subject"];
$email= $_POST["email"];
$text= $_POST["message"];
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= "From: " . $email . "\r\n"; // Sender's E-mail
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
这是我的 php 页面的代码。你能让我知道我的代码有什么问题吗?感谢您的帮助
if (mail($to,$subject,$text,$headers))
{
echo "Check Email please";
}
else
{
echo 'failed';
}
胡说叔叔
相关分类