2.8.11. mail.add_x_header

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.

  1. Openup PHP settings.
  2. Enable the option "mail.add_x_header" and save the changes:
  3. Wait approximately 10-15 minutes for the changes to take effect.