Código PHP:
$nombre = $dato[1];
$email = $dato[2];
$url = $dato[3];
$mensaje = $dato[4];
$fecha = $dato[5];
if (isset($email)){
$buffer = str_replace("{Email}", $email, $buffer);
Template("tpl/tpl_mensajes.html");
} else {
$buffer = str_replace("{Email}", "no tiene e-mail", $buffer);
Template("tpl/tpl_sinEMAIL.html");
}
esto es lo que se me ha ocurrido :( espero no me haya equivocado