I want to send an html email from my script. I get the email's html using file_get_contents - but I found out the $_SESSION isn't shared between the 2 pages (and other_script.php needs some data that is stored in the $_SESSION array).
this is the code in my send email function:
$url ="OTHER_SCRIPT.php";
$html = file_get_contents($url);
$from ;
$crlf = "\r\n";
$mime = @new Mail_mime($crlf);
@$mime->setHTMLBody($html);
//SEND MAIL...
Is there another way to get the output of a script to a variable that will share the session data? or a way to make the $_SESSION data available to my other_script.php?