I need a help. My script sends e-mails, but ignores html tags. Could anyone help me with this?
My code is here:
$to = "email@example.com";
$subject = 'Povolenie užívateľa';
$message = '<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
Užívateľ čaká na vaše schválenie.<br>Meno:$meno <br> Priezvisko:$priezvisko <br>
Firma:$firma<br>
E-mail:$email <br> V prípade ak chcete užívateľa povoliť kliknite na tento odkaz:
<a href="http://website.com/povolenie.php?r=$ret&povolenie=1" target="blank">povoliť</a> <br>
Ak ho povoliť nechcete tak kliknite na tento odkaz:
<a href="http://website.com/povolenie.php?r=$ret&povolenie=0" target="blank">zakázať</a>"
</body>
</html>';
$headers = 'MIME-Version: 1.0' . "
";
$headers .= 'Content-type: text/html; Charset=Windows-1250' ."
";
$headers = 'From: XXX<email@example.com>' . "
" .
"CC: email@example.com";
mail($to, $subject, $message, $headers);