HTML tags in PHP mail function

$to = “[To Address]”;
$subject = “Mail with Details”;

$headers  = ‘MIME-Version: 1.0’ . \r\n;
$headers .= ‘Content-type: text/html; charset=iso-8859-1’ . \r\n;

// Additional headers
$headers .= ‘To: AviWeb <To Address>’ . \r\n;
$headers .= ‘From: AviWeb <To address>’ . \r\n;
// Additional headers
$email_body = “<table width=\”721\” height=\”186\” border=\”0\” align=\”left\”>
<td colspan=\”3\” style=\”background-color:#666666; color:#FFFFFF\” align=\”left\”><strong>Contact  – Us </strong></td>
<tr><td>First Name : </td> <td>:</td> <td>Avinash</td><tr>
<tr><td>Email</td> <td>:</td> <td>To Address</td></tr>
<tr><td>Subject</td> <td>:</td> <td>”
<tr><td valign=’top’>Comments</td> <td valign=’top’>:</td> <td>test</td></tr>


$message = “<html>
<body ><center>



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s