Sounds more like the mail server than PHP. Although weird anyway ! What mail server are you using : local/remote, smtp/sendmail/qmail ? Try using whatever method and send a mail through this server from outside of PHP with the same problem parameters ? Does that work ? It should either eliminate PHP, or point the finger ! I suspect eliminate but you never know.. That's where I think I'd start anyway. Send uz an update when you have some answers. Steve -----Original Message----- From: Tanner Postert [mailto:tanner.postert@xxxxxxxxx] Sent: 13 July 2007 00:33 To: php-general@xxxxxxxxxxxxx Subject: mail function from and reply to address problem I am currently running PHP 5.1.4 Fedora Core 5 i'm trying to exectute the following test script. <?php $to = 'my.email@xxxxxxxxxxx'; $subject = 'the subject'; $message = 'body'; $headers = 'From: webmaster@xxxxxxxxxx' . "\r\n" . 'Reply-To: webmaster@xxxxxxxxxx' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> i have about 10 or so different virtual hosts running on this machine, and if i use any of them for the from & reply-to addresses, it works fine, or even if i use domains I don't control like aol.com or example.com those work too, but one particular new virtual host doesn't work, it re-writes the from address to the default virtual host address. which is strange because that isn't in the php.ini anywhere, but it could just be taking the hostname. anyone have any ideas? thanks in advance. Tanner -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php