
How to email entire page in JavaScript without using OB?

ob_end_start();
// page content
if(!empty($_GET['purpose']) && $_GET['purpose'] == "email") {
$message = ob_get_contents();
ob_end_clean();
// your code for sending the $message
} else {
ob_end_flush();
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
