Re: Sendmail and setting From

From: Date: Tue, 19 Feb 2002 07:04:17 +0000
Subject: Re: Sendmail and setting From
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-85357@lists.php.net to get a copy of this message
> On careful reading of the php.ini file, I now realize that the settings > for the "From" is for WIN32 *only*. So, as a newbie to the world or > Linux/Unix, I am not sure where I place the setting for the default > "From". I can add it as the fourth argument in the mail() function, but > I would prefer not to have to put it into every message. > > However, unless I do, my messages have "From: Apache". > > Hopefully, I am making some sense.......... Construct a proper From: header, then pass it to the mail() function. Look at http://www.php.net/manual/en/function.mail.php ------------------------------------------------------------------------ Greg Donald - http://destiney.com/ http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/ ------------------------------------------------------------------------

« previous php.general (#85357) next »