To send an html formatted text or emailer with php mail function you need to put correct syntax and header information inside you mail function. The most important is to have the header information. Because header will tell your function that your email contain what format of text, for that you can use
$headers = 'MIME-Version: 1.0' . "\r\n" .
'Content-type: text/html; charset=iso-8859-1' . "\r\n" .
'From:'.$email . "\r\n" .
'Reply-To: '. $email . "\r\n" .
'X-Mailer: PHP/' . phpversion();
for a better explanation the example is as follows
You should type this manually, thats how you will learn :)
posted by honeyonsys