PHP mail secruity question

Is it possible to prevent the following:

X-Source:
X-Source-Args:
X-Source-Dir:
Return-Path:
X-PHP-Script:

From being sent in the email header for added security. I tried to manually add each record to the header information sent by the php mail to show not available to each, however, it just added as a duplicate record while the other was still included.

Any ideas?

What script are you using to generate the email?

It is possible that some of those are being added by the mail server after you send the email - Return-Path: certainly would be as it is a mandatory field that is required for security purposes.

The script so far is very basic:

$to = “someone@example.com”;
$subject = “Test mail”;
$message = “Hello! This is a simple email message.”;
$from = “someonelse@example.com”;
$headers = “From: $from”;
mail($to,$subject,$message,$headers);