Hi Guys,

I know how to send HTML emails using PHP but the problem I'm having is the HTML code is breaking my code and just wondering what the best way of doing this is?

PHP Code:
/*Send Email To New Affiliate*/
$to $email;
$message "HTML CODE GOES HERE";

$from "magazines@xxx.com";

$headers "MIME-Version: 1.0" "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" "\r\n";
$headers .= 'From: <mike@xxx.com>' "\r\n";
 
mail($to,$subject,$message,$headers); 
Any help would be great.

Thank you!