Re: sending mail with php on a linux box

From: Date: Fri, 16 Apr 2004 19:32:34 +0000
Subject: Re: sending mail with php on a linux box
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-183678@lists.php.net to get a copy of this message
From: "Chris W" <1qazse4@cox.net> > I'm not sure if this is a PHP, Apache, Network, or sendmail > configuration but hopefully someone here will know. > > When I send email with PHP the from header is > > wwwrun@MachineName.thewishzone.com > > I can't run a real mail server on my machine, so I want to change that > email address to something else. What config file do I need to look at > to do this? The last parameter of mail() allows you to specify additional headers.Use it to set a From header. $headers = "From: you@yourdomain.com\r\n"; mail($to,$subject,$msg,$headers); ---John Holmes...

« previous php.general (#183678) next »