How to send HTML e-mail in tell a friend script

I have a tell a friend script and i want send emails that being sent by visitor when they fill up a form and send it, an email that will recieved by respective individuals should be in HTML format[even an embedded images] so can you suggest what will be the headers and what will be the script for it.

My tell a friend form consist of
1] Text box for = Your Name[visitors name]
2] Text box for = Your E-mail[visitors E-mail]
3] 10 Text boxes = Your friends E-mail[ reffering e-mails]
and at last the submit button

I want help on this php script can anyone provide this type of working script, i have tried lots of other scripts and now i am getting frustrated so please help me out with this.
[727 byte] By [kiran_phadtare] at [2007-11-20 8:15:30]
# 1 Re: How to send HTML e-mail in tell a friend script
Here is an example I wrote about a year ago of the most basic HTML e-mail script for PHP. It should be very useful to you. The rest you should be able to do by yourself.

<?php
$to = "email@address.com";
$from = "from@address.com";
$subject = "Test email";
$message = "<html><head></head><body></body></html>";

$headers = "MIME-Version: 1.0\r\n";
$headers .= "From: " . $from . "\n";
$headers .= "Reply-To: " . $from . "\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

mail($to, $subject, $message, $headers);
echo "E-mail sent!";
?>
PeejAvery at 2007-11-10 3:56:23 >