AJAX请求似乎没有收到响应

I have the following code: AJAX:

 $.ajax({
                url: "mail.php",
                type: "POST",
                data: {first_name:first_name,last_name:last_name,email: email,telephone:telephone,message:message},
                cache: 'false',
                dataType: "json",
                success: function(response) {
                    {
                        if(response.status==1)
                            alert('Email sent!');
                        else
                            alert('Error.')
                    }
                }
            });

PHP:

header('Content-type: application/json');
$to="me@example.com";
$message=$_POST['message']."
"."
".$_POST['first_name'].' '.$_POST['last_name']."
".$_POST['telephone'];
$subject="New Message!";
$email=$_POST['email'];
$headers="From:".$email;
$success=mail($to,$subject,$message,$headers);
if($success)
{
    $done=array("status"=>true);
    echo json_encode($done);
}
else
{
    $done=array("status"=>false);
    echo json_encode($done);
}

In the network panel, it seems like the response is not recieved and the type is "Pending"

If I am not mistaken, this

 success: function(response) {
                {
                    if(response.status==1)
                        alert('Email sent!');
                    else
                        alert('Error.')
                }
            }

should be

  success: function(response) {
                    if(response.status==1)
                        alert('Email sent!');
                    else
                        alert('Error.');
            }