Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jan 2005
    Posts
    470
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Removing "X-Source" from sent mail

    I have noticed that all emails sent using PHP have the following email headers:
    Code:
    X-Source:	/usr/bin/php
    X-Source-Args:	/usr/bin/php email_script.php
    X-Source-Dir:	/public_html/email_dir
    This presents a security concern as certain directories and scripts should never be known to anyone but myself.

    How can I prevent those "X-Source" headers from being sent with the email?

    Thanks!

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    They are either being added by your PHP code or by the mail program that it is calling. If it is the PHP then simply don't add those headers. If the mail program then you will need to talk to your host.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #3
    Regular Coder
    Join Date
    Jan 2005
    Posts
    470
    Thanks
    3
    Thanked 0 Times in 0 Posts
    They are not added anywhere in our code.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •