Re: Email From problem...

From: Date: Thu, 12 Oct 2000 15:52:18 +0000
Subject: Re: Email From problem...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-19828@lists.php.net to get a copy of this message
Christopher Ditty [CDitty@email.usps.gov] wrote: > > I am setting up an email server on a linux box for my dept and am > using php for some testing. When I send out emails, they come from > nobody@myserver.com. Even if I specify the From address, it still > comes from nobody@myserver.com. This is how I did it: $to = "abc@xyz.com" $subject = "Some subject"; $message = "Some message"; $addl_headers = "From: merrill@missioncriticallinux.com"; mail($to, $subject, $message, $addl_headers); It works. HTH. -- Hardy Merrill Mission Critical Linux, Inc. http://www.missioncriticallinux.com

« previous php.general (#19828) next »