Re: Could mail() do ??? (part 2)

From: Date: Mon, 26 May 2003 16:58:34 +0000
Subject: Re: Could mail() do ??? (part 2)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-149000@lists.php.net to get a copy of this message
At 02:31 27-5-03, you wrote:
I edited the php.ini, and altered the \"sendmail_path\" to changed the path and add : /usr/sbin/send_mail -t -i -f fongming@fonn.fongming.idv.tw and finally it worked. But my problem is , if we do not adjust the php.ini file, how could we just use the mail() function do that work succeessfully?
what is -t -i -f about? You can add headers to the mail(), to force the value of the From, reply-to and other mailheaders. See the examples 2 and 3 on http://nl.php.net/manual/en/function.mail.php If you do not set these headers, the mailer will try to create its own, and these are usually not very good guesses.

« previous php.general (#149000) next »