我的邮件功能在在线服务器上.它工作正常.但是不是现在.我很困惑为什么它已停止发送邮件.它显示发送电子邮件的消息,但收件箱中未收到任何电子邮件.
这是我的PHP代码:
<?php
if (isset($_POST['submit'])) {
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$message = $_POST['message'];
$headers = "From: " . $email . "\n"; //from address
$to = ""; //my mail id
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1 \n";
$subject = "Test mail";
$body = '<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>"."<h3>"."Hello Test,."</h3>".
</title>
</head>
<body><p></p>
<p style="color: #00CC66; font-weight:600; font-style:italic; font-size:14px; float:left; margin-left:7px;">You have received an inquiry from your website. Please review the …Run Code Online (Sandbox Code Playgroud)