Prueba a usar el 5º parámetro de la función mail()
http://www.php.net/manual/en/function.mail.php
(Ojo .. sólo hacen mención de este parámetro en la versión en ingles de la función mail() de la documentación ..)
Cita: Example 3. Sending mail with extra headers and setting an additional command line parameter.
Código PHP:
<?php
mail("[email protected]", "the subject", $message,
"From: webmaster@{$_SERVER['SERVER_NAME']}", "-fwebmaster@{$_SERVER['SERVER_NAME']}");
?>
Note: This fifth parameter was added in PHP 4.0.5. Since PHP 4.2.3 this parameter is disabled in safe_mode and the mail() function will expose a warning message and return FALSE if you're trying to use it.
Un saludo,