Quote by LWC: I was talking about the function displayform() inside admin/mail.php...
good, we're on the same page then... the first line after the function begins reads:
Text Formatted Code
global $_CONF, $_TABLES, $_USER, $LANG31, $HTTP_SERVER_VARS;
change that to reflect your variable change, ie:
Text Formatted Code
global $_CONF, $_USER, $_LANG31, $PHP_SELF, $LANG31, $_TABLES;
now your variable wont be empty. however it may end you up at the same place where you started in which case that isn't the problem.