RE: [PHP] php mail()

From: Date: Mon, 14 Oct 2002 19:16:53 +0000
Subject: RE: [PHP] php mail()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-119933@lists.php.net to get a copy of this message
> Hi list, > > I trying to send mail using PHP's mail() function without success. My > email > is rejected because it goes with apache@localhost. I've tried everything > put > a diferent from in header etc. > > Does anyone have a clue > > My system is a RedHAT 7, PHP4.2.3, sendmail > > thank's n advance Probably need to set a FROM header in your mail $header = "FROM: email@yourhost.com"; mail($to,$subject,$body,$header); Or there is a setting in php.ini that sets this, too. Maybe try that, if you can. ---John Holmes...

« previous php.general (#119933) next »