
Se me olvido ese pequeño detalle:
Inventate una variable que lleve ese código metido dentro, pero tienes que respetar los saltos de línea y todo así que te pongo un ejemplo que siempre es mejor que intentar explicarlo:
Código PHP:
$eol="\n";
$txt = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'.$eol;
$txt .= '<html xmlns="http://www.w3.org/1999/xhtml">'.$eol;
$txt .= '<head>'.$eol;
$txt .= '<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />'.$eol;
$txt .= '</head>'.$eol;
$txt .= '<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">'.$eol;
$txt .= '<table width="842" height="510" border="0">'.$eol;
$txt .= '<tr>'.$eol;
$txt .= '<td> </td>'.$eol;
$txt .= '<td width="370"> </td>'.$eol;
$txt .= '</tr>'.$eol;
$txt .= '</table>'.$eol;
la variable $eol es el salto de línea muy necesario pq si no los programas de correo se rayan y no leen el html

Creo que ahora si esta todo....
Ahh una cosa más, si lo quieres enviar a varios destinatarios solo tienes que rellenar la variable $to con los correos separados por comas ","