使用Thanks Message加载页面,但无法从我的PHP / HTML联系表单接收电子邮件

时间:2016-04-06 11:35:10

标签: php html forms email contact

这里是我的PHP代码 - 非常简单 - 但我仍然无法接收任何电子邮件

<?php

    $from="email";
    $email="machiavelli1527@hotmail.com";
    $subject=$_POST['Subject'];
    $message=$_POST['Surname'];
    $message=$_POST['Gender'];
    $message=$_POST['telephone'];
    $message=$_POST['EnterEmail'];
    $message=$_POST['Message'];
    $message=$_POST['Receive'];
    $message=$_POST['Receive1'];

    mail ($email, $subject, $message, "From:".$from);

    echo("Thank you $name for your interest in LTD.  We will be in contact with you very soon. Feel free to continue to browse the company website.");
    die;
?>

0 个答案:

没有答案