Hello, On 07/31/2002 10:47 PM, Dan Radom wrote: > I'm having provblems with the following script... > > mail("[EMAIL PROTECTED]", "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=<[EMAIL PROTECTED]>, 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php