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;
?>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.