my mail have some tempalte with HTML tags includes and images.. when i am sending mail to my id and open that in Gmail it getting the correct template but in thunderbird am getting only html tags... not the correct format
code:
<?php
// multiple recipients
$to = '[email protected]'; // note the comma
// subject
$subject = 'Birthday Reminders for August';
// message
$message = '
<h1> hiii </h1> <h3>h3</h3> <strong> strong </strong>
<p>Here are the birthdays upcoming in August!</p>
<table>
<tr>
<th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version:1.0'. "\r\n";
$headers .= 'Content-type:text/html;charset=iso-8859-1' . "\r\n";
// Additional headers
$headers .= 'From:Birthday Reminder <[email protected]>' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);
?>
what i need to change for thunderbird?
Content-type: text/html; charset=iso-8859-1
Return-Path: <[email protected]>
<html>
<head>
<title>Registration</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p><strong>Dear xdcxz fdzfsd <br />
<a href="www.site.com/id/2">Click here</a> to accept...
</p>
</body>
</html>
This is the way it is shown in Thunderbird.
but in gmail i got the correct html rendreing...