zodehala
01-26-2010, 10:17 AM
my codes are like following. i wanna send it as html But it is sent as text
// HTML mail göndermek için içierk tipi ve başlık olamlı
$headers = 'MIME-Version: 1.0';
$headers .= 'Content-type: text/html; charset=iso-8859-9';
$headers .= 'From: '.$from .' <'.$email.'>' . "\r\n";
$to = "info@codingforums.com";
$subject = $konu." (".$baslik.")";
$message =
'
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
<title>ADSL</title>
</head>
<body>
<table class="mail_tablo">
<tr>
<td class="mail_td1"><div align="right">name :</div></td>
<td>'.strip_tags($ad).'</td>
</tr>
<tr>
<td class="mail_td1"><div align="right">father name :</strong></div></td>
<td>'.strip_tags($akizlik).'</td>
</tr>
</table>
</body>
</html>
';
$ulak = imap_mail(
$to,
strip_tags($subject),
strip_tags($message,"<br>"),
$headers
);
// HTML mail göndermek için içierk tipi ve başlık olamlı
$headers = 'MIME-Version: 1.0';
$headers .= 'Content-type: text/html; charset=iso-8859-9';
$headers .= 'From: '.$from .' <'.$email.'>' . "\r\n";
$to = "info@codingforums.com";
$subject = $konu." (".$baslik.")";
$message =
'
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
<title>ADSL</title>
</head>
<body>
<table class="mail_tablo">
<tr>
<td class="mail_td1"><div align="right">name :</div></td>
<td>'.strip_tags($ad).'</td>
</tr>
<tr>
<td class="mail_td1"><div align="right">father name :</strong></div></td>
<td>'.strip_tags($akizlik).'</td>
</tr>
</table>
</body>
</html>
';
$ulak = imap_mail(
$to,
strip_tags($subject),
strip_tags($message,"<br>"),
$headers
);