Hi Jason, I have found out the mistake I did, the /usr/bin/sendmail that my MTA(XMAIL in this case) uses was not 'chmod +s' ed.
Ans that is the reason when I ran the script in shell ( being logged in as root) it worked fine, and not thru apache. /chandu ----- Original Message ----- From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, August 17, 2002 11:49 PM Subject: Re: [PHP] PHP - mail() function problem > On Saturday 17 August 2002 21:08, N. Pari Purna Chand wrote: > > Hi guys, > > > > I am facing a strange problem, > > php's mail() function is not working when a php page is executed thru > > apache, > > but the same page which has mail() function is working fine and is sending > > mails > > when php is used as a scripting language in shell. > > Is this on the same machine? If so, check that both the apache-php and the > cgi-php are using the same php.ini (and hence same sendmail settings). > > > Any guess what might be causing the problem ? > > Try comparing php.ini. > > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > > /* > Heard that the next Space Shuttle is supposed to carry several Guernsey cows? > It's gonna be the herd shot 'round the world. > */ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php