can anyone tell me why when I email from the mail function the user gets text and not HTML.
here is the code.
$subject = "You have overtime requests to approve.";
$message =
"<table width='736' height='509' border='1' cellpadding='0' cellspacing='0' bordercolor='#000000' bgcolor='#26354A'>
<tr>
<th colspan='2' scope='col'><table width='100%' height='509' border='0' cellpadding='0' cellspacing='0' bgcolor='#D3DCE6'>
<tr>
<th width='230' rowspan='2' align='left' valign='top' bgcolor='#26354A' scope='col'><img src='images/birch.JPG' width='230' height='286' /></th>
<th width='500' height='19' scope='col'> </th>
</tr>
<tr>
<td height='176' align='left' valign='top'><blockquote>
<p class='style1'>You have a message. </p>
<p class='style1'>Please login to view your requests.</p>
<p class='style2'><a href='login.php'>Click Here to Login </a></p>
</blockquote> </td>
</tr>
<tr>
<th bgcolor='#26354A' scope='row'> </th>
<td> </td>
</tr>
</table></th>
</tr>
</table>";
$to = $row_mgr_email['email'];
mail($to, $subject, $message);
and this is what I get in the email.
<table width='736' height='509' border='1' cellpadding='0' cellspacing='0' bordercolor='#000000' bgcolor='#26354A'>
<tr>
<th colspan='2' scope='col'><table width='100%' height='509' border='0' cellpadding='0' cellspacing='0' bgcolor='#D3DCE6'>
<tr>
<th width='230' rowspan='2' align='left' valign='top' bgcolor='#26354A' scope='col'><img src='images/birch.JPG' width='230' height='286' /></th>
<th width='500' height='19' scope='col'> </th>
</tr>
<tr>
<td height='176' align='left' valign='top'><blockquote>
<p class='style1'>You have a message. </p>
<p class='style1'>Please login to view your requests.</p>
<p class='style2'><a href='login.php'>Click Here to Login </a></p>
</blockquote> </td>
</tr>
<tr>
<th bgcolor='#26354A' scope='row'> </th>
<td> </td>
</tr>
</table></th>
</tr>
</table>
Thanks.
here is the code.
$subject = "You have overtime requests to approve.";
$message =
"<table width='736' height='509' border='1' cellpadding='0' cellspacing='0' bordercolor='#000000' bgcolor='#26354A'>
<tr>
<th colspan='2' scope='col'><table width='100%' height='509' border='0' cellpadding='0' cellspacing='0' bgcolor='#D3DCE6'>
<tr>
<th width='230' rowspan='2' align='left' valign='top' bgcolor='#26354A' scope='col'><img src='images/birch.JPG' width='230' height='286' /></th>
<th width='500' height='19' scope='col'> </th>
</tr>
<tr>
<td height='176' align='left' valign='top'><blockquote>
<p class='style1'>You have a message. </p>
<p class='style1'>Please login to view your requests.</p>
<p class='style2'><a href='login.php'>Click Here to Login </a></p>
</blockquote> </td>
</tr>
<tr>
<th bgcolor='#26354A' scope='row'> </th>
<td> </td>
</tr>
</table></th>
</tr>
</table>";
$to = $row_mgr_email['email'];
mail($to, $subject, $message);
and this is what I get in the email.
<table width='736' height='509' border='1' cellpadding='0' cellspacing='0' bordercolor='#000000' bgcolor='#26354A'>
<tr>
<th colspan='2' scope='col'><table width='100%' height='509' border='0' cellpadding='0' cellspacing='0' bgcolor='#D3DCE6'>
<tr>
<th width='230' rowspan='2' align='left' valign='top' bgcolor='#26354A' scope='col'><img src='images/birch.JPG' width='230' height='286' /></th>
<th width='500' height='19' scope='col'> </th>
</tr>
<tr>
<td height='176' align='left' valign='top'><blockquote>
<p class='style1'>You have a message. </p>
<p class='style1'>Please login to view your requests.</p>
<p class='style2'><a href='login.php'>Click Here to Login </a></p>
</blockquote> </td>
</tr>
<tr>
<th bgcolor='#26354A' scope='row'> </th>
<td> </td>
</tr>
</table></th>
</tr>
</table>
Thanks.