0

我正面临这个错误。我在 php 中创建了一个联系人表单,通过它我可以接收来自用户的邮件。我把它上传到大摇滚主机上。但是我在图像中收到了这个错误,我在描述中给出了我的 php 代码。

<?php
    $name = $_POST['name'];
    $from = $_POST['email'];
    $phone = $_POST['phone']; 
    $email = "abc@gmail.com" ;
    $message = $_POST['message'];
    $subject = $name+$phone;
    mail($email,$subject,$message,"From".$from);
    echo "mail sent";
    header('Location: index.php');
?>`
4

0 回答 0