坚持一个简单的 php 邮件。任何人都可以发现我哪里出错了。很乐意提供任何帮助。
<?php
$to = "example@website.co.uk";
$name = $_POST['name'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$message = $_POST['message'];
mail($name, $email, $subject, $message);
if(mail($name, $email, $subject, $message)) {
echo "E-Mail Sent";
} else {
echo "There was a problem";
}
?>