$mail->MsgHTML($body);
I have $body to be all the stuff in mynewpage.php which has php code, so i need to html code of this page... how can i do this?
You can use the ob_ functions.
ob_start(); include( 'xyz' ); $body = ob_get_flush();
thanks