hi,
i used the below code i got the message field with the html tags. plz tell that what's the problem in my code. [php]<?php
$to ='$_POST[email_addr]";
$subject = "Site Registration Confirmation";
$message = "<html>
<head>
<title>Site Registration Confirmation</title>
</head>
<body style=font-family:verdana, arial; font-size: .8em;>
<a title=Confirm Comment
href=http://www.website.com/confirm.php?c=' .$confirmationC ode.'>http://www.website.com/confirm.php?c=' .$confirmationC ode.'</a>
</body>
</html>';
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "X-Priority: 3\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: php\n"
$from = "me@example.com ";
$headers = "From: $from";
mail($to,$subje ct,$message,$he aders);
?>[/php]Use code tags!!!
i used the below code i got the message field with the html tags. plz tell that what's the problem in my code. [php]<?php
$to ='$_POST[email_addr]";
$subject = "Site Registration Confirmation";
$message = "<html>
<head>
<title>Site Registration Confirmation</title>
</head>
<body style=font-family:verdana, arial; font-size: .8em;>
<a title=Confirm Comment
href=http://www.website.com/confirm.php?c=' .$confirmationC ode.'>http://www.website.com/confirm.php?c=' .$confirmationC ode.'</a>
</body>
</html>';
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "X-Priority: 3\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: php\n"
$from = "me@example.com ";
$headers = "From: $from";
mail($to,$subje ct,$message,$he aders);
?>[/php]Use code tags!!!
Comment