I am using PHPs mail() function. I've noticed when going through the message (that gets sent) properties that some headers are present which specify
I've removed the domain, but this is basically what's included. How can I stop this being included, or am I just being security paranoid? Also, I would like to keep using phps mail function as opposed to setting up something else. Thanks.
X-PHP-Originating-Script: 1000:emailtest.php
From: [email protected]
Reply-To: [email protected]
X-Mailer: PHP/5.3.10-1ubuntu3.10
Message-Id: <[email protected]>
Thanks @Wrikken for pointing me in the right direction
This article highlights two properties in php.ini that can be changed:
mail.add_x_header = Off
expose_php = Off
I have no idea why they'd be on by default..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With