我有一个简单的代码,如果邮件已发送,则应回显 1;如果未发送,则应回显 0。但我收到错误 500。我尝试更改电子邮件,但没有成功。请提出修复建议。
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="container-fluid">
<h1>Emails:</h1>
<p>
<?php
$to = "myemail@gmail.com"
$subject = "Subject";
$message = "This is a message";
echo mail($to, $subject, $message);
?>
</p>
</div>
</body>
</html>
慕盖茨4494581