Hi how can I assign html body tag contents into php variable then use it as the body of email

I think what hishama is asking is something like this:

<?php
$var = "<p>Sample</p>";

echo $var;
?>