I've been trying to make this work to send html emails without going to my emails and sending them over and over again. I have the whole scripts copied from http://www.w3schools.com/PHP/func_mail_mail.asp this site and it won't work on my scripts. I had to modify some of the things to test to see if it did send but it keeps on saying that there's an error in the sending process. Can you help me out?

Here's the scripts.

<?php
$to = "************@gambino-army.com";
$subject = "HTML email";

$message = "
<html>
<head>
<title>HTML email</title>
</head>
<body>
<p>This email contains HTML Tags!</p>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
</table>
</body>
</html>
";
// More headers

// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";

// More headers
$headers .= 'From: **********@gambino-army.com' . "\r\n";


$mail = @mail($to,$subject,$message,$headers);
echo $mail ? "Message sent." : "Error sending message.";
?>

Yes, I did the last few lines like that to see if a script has been ran correctly and it didn't work. This is really aggravating to me. can someone solve this issue?