I know this is a simple way to send HTML Email.
<?php
$to = "johndoe@fakedomain.com";
$from = "janedoe@anotherfakedomain.com";
$subject = "This is a test email";
$message = <<<EOF
<html>
<body bgcolor="#ffffff">
<p align="center">
<b>Hello World!</b>
</p>
</body>
</html>
EOF;
$headers = "From: $from\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($to, $subject, $message, $headers);
if ($success)
echo "The email to $to from $from was successfully sent";
else
echo "An error occurred when sending the email to $to from $from";
?>
but I also want to send HTML email,and the HTML file also have jpg images and flash swf file.I confuse how to add links in the HTML eamil for them.do I have to attch all the images with the Email or only add some links on HTML mesage.
Please give me a idea about it.Thanks