$_SESSION, $_POST, and $_GET always have a global scope and can be referred to in the email body without any alterations. Anything else, like recordsets or connections have to be added to the global scope in the email body file like:
<?php
global $RecordsetName, $etc;
?>