Re: Problems with mail()

From: Date: Mon, 26 Jun 2000 19:29:25 +0000
Subject: Re: Problems with mail()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3180@lists.php.net to get a copy of this message
I've fixed my problem, and I wanted to get it on record. On Sun, 25 Jun 2000, Don Faulkner wrote: > mail() is apparrently sending my messages, but it doesn't see the > specified recipients. > > I've installed PHP4 on a Redhat Linux system, using Redhat's secure web > server (secureweb-3.2.12 is the rpm). All other PHP functions work > fine. However, when I use mail: > $result = mail( "don.faulkner@infosec.spectria.com", "php test", > "This is a test" ); > > I get a true result, and I get entries in my maillog (names changed to > protect the guilty :) : > > Jun 25 12:18:31 SERVER sendmail[32162]: MAA32162: from=nobody, size=72, > class=0, pri=72, nrcpts=0, > msgid=<200006251918.MAA32162@SERVER.DOMAIN.COM>, > relay=nobody@localhost > > > The upshot is that I can send an email of any size I choose, it just > doesn't go to anyone. Well, I got things working, and I wanted to let everyone know how. I configured php.ini as so: sendmail_path = /usr/lib/sendmail When I should have said: sendmail_path = "/usr/lib/sendmail -t" What isn't mentioned anywhere that I've seen is that if you need to reconfigure sendmail support in php.ini, you must include all your flags on the config line. This should be obvious, I guess, but it wasn't to me. -- Don Faulkner, MCP | Senior Security Analyst | Spectria <don.faulkner@infosec.spectria.com> | --A division of Rainbow Technologies | 1-888-IS-GUARD

« previous php.general (#3180) next »