Re: mail() problems

From: Date: Thu, 01 Aug 2002 02:23:09 +0000
Subject: Re: mail() problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-110608@lists.php.net to get a copy of this message
Hello, On 07/31/2002 10:47 PM, Dan Radom wrote:
I'm having provblems with the following script... mail("dan@radom.org", "www form submission", $message, "From: $email"); ...the variables are being POSTed from a form, which does make it to sendmail. sendmail logs the following... Jul 31 19:32:47 mars sendmail[20605]: g711Wlu20605: from=nobody, size=81, class=0, nrcpts=0, msgid=<200208010132.g711Wlu20605@mars.radom.org>, relay=nobody@localhost the nrcpts=0 is obviously a concern here. This sendmail does handle mail for a few domains and does accept mail for localhost. Any ideas where I've gone wrong? All this was wokring with php 4.2.1 until a hard drive died. I rebuild the machine and installed php 4.2.2 and this is where I'm at. I'm using the same sendmail configuration.
Try setting mail() 5th argument to "-f$email". -- Regards, Manuel Lemos

« previous php.general (#110608) next »