Parameter mail.add_x_header determines whether to add to messages sent without authorization from the web server (for example, using the function mail), header
X-PHP-Originating-Scriptwhich will contain the script UID and file name. After enabling this option, you can track the name of the script that initiated the sending by the headers of the messages being sent, which can be useful, for example, when searching for the source of spam.
- Openup PHP settings.
- Enable the option "mail.add_x_header" and save the changes:
- Wait approximately 10-15 minutes for the changes to take effect.