我很遗憾地问一个微不足道的事情,但我真的不使用php,我正在尝试使用最简单的代码,只发送一封没有验证码或任何复杂的电子邮件。
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$to = "some-email@live.com";
$subject = "New message";
mail($to, $subject, "From: " . $name, $message, "", "");
echo "Your message has been sent";
?>