php: hiding email header X-PHP-Originating-Script

By default PHP exposes information about the script which sent an email:

X-PHP-Originating-Script: 2000:send-email.php

To fix this change the following settings:

mail.add_x_header = Off
expose_php = Off

The header should be gone now. Have a nice day!

Leave a Reply

Your email address will not be published. Required fields are marked *