If there is no access to php.ini (assume php -v >= 5.3 & mail.add_x_header = 1), or a way to patch mail, is there a way to change the X-Php-Originating-Script header when using php's mail()
function?
The little research I did indicated that altering $_SERVER['PHP_SELF']
prior to calling mail()
would do the trick, however this did not work for me.
I also tried setting X-Php-Originating-Script directly, this resulted in an additional 'X-Php-Originating-Script' header.
The goal in this case is to prevent recipients of said email to gleam details on script nomenclature.
Thanks!