<?php
$to = 'phpsmile@hotmail.com' . ', ';
$to .= 'phpsmile@yahoo.com';
// subject
$subject = 'Contact Details';
$message = '
<html>
<head>
<title>Contact Details</title>
</head>
<body>
<table>
<tr>
<td>Your Name:</td><td>Abid</td>
</tr>
<tr>
<td>Your Telephone:</td><td>1234567</td>
</tr>
<tr>
<td>Your Email:</td><td>phpsmile@hotmail.com</td>
</tr>
<tr>
<td>Subject:</td><td>Enquiry</td>
</tr>
<tr>
<td>Message</td><td>Hi...</td>
</tr>
</table>
</body>
</html>
';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'To: phpsmile@hotmail.com, phpsmile@hotmail.com>' . "\r\n";
$headers .= 'From: javauser789@yahoo.com>' . "\r\n";
mail($to, $subject, $message, $headers);
?>
Anything wrong with my code.