Php邮件只接收一些字段

时间:2014-09-14 00:39:32

标签: php email

大家好,首先是的,我知道我是菜鸟,我知道我的邮件表格不安全;-)随便说我希望你们能帮我解决这个非常烦人的问题,当我用邮件发送邮件时我只收到“名称”字段,我似乎无法找到问题,我将发布我的代码,所以你们可以提前看看: - )

<?php
if (isset($_POST['submit-contact'])){
$ToMail = 'test@hotmail.com';
$Subject = 'Mail fra gameds';
$Header = "From: ".$_POST["email-contact"]."\r\n";
$ReplyTo = "Reply to: ".$_POST["email-contact"]."\r\n";
$ContentType = "Content-type: text/html; charset=iso-8859-1\r\n";
$Name = "Name: ".$_POST["name-contact"]."\r\n";
$Email = "Email: ".$_POST["email-contact"]."\r\n";
$Content = "Comment: ".nl2br($_POST["textarea-contact"])."\r\n";
mail($ToMail, $Subject, $Name, $Email, $Content) or die ("Fejl");
}
?>

0 个答案:

没有答案