Hi ,
when i run the below code i all the html tags in the message field displayed as html tags(like <html>). plz tell that what's the problem i made .
when i run the below code i all the html tags in the message field displayed as html tags(like <html>). plz tell that what's the problem i made .
Code:
code :[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='.$confirmationCode.'>http://www.website.com/confirm.php?c='.$confirmationCode.'</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,$subject,$message,$headers); [/php]
Comment