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

Recommended Answers

All 3 Replies

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.