Re: going to try one more time about mail problems

From: Date: Thu, 01 Jun 2000 14:26:31 +0000
Subject: Re: going to try one more time about mail problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-798@lists.php.net to get a copy of this message
> 1) Yes, the sendmail_path in php.ini has been properly setup. What exactly is it set to? Check your phpinfo() output. > However, if I use this code it does work: > > $MP = "/usr/lib/sendmail -t "; > $fd = popen($MP,"w"); > fputs($fd, "To: wizaerd@wizaerd.com\n"); > fputs($fd, "From: jsheble@zanova.com\n"); > fputs($fd, "Reply-To: jsheble@zanova.com\n"); > fputs($fd, "Subject: Test EMail\n"); > fputs($fd, "X-Mailer: PHP/".phpversion()."\n\n"); > fputs($fd, "This is a test\n"); > pclose($fd); > > If the one section of code works and the other does not, not to mention > sending mail from the command line works, then most likely it is not a > sendmail configuration problem. I have nbeen told that the second method is > all that sendmail really does behind the scenes for the mail() anyways, but > I was also told that the second approach would be more intensive (CPU > cycles, memory footprints, etc... I dunno why, I just know what I've been > told). Well, whoever told you that second part doesn't really understand what is going on. The difference is insignificant. > I'm afraid that if I do not get this rectified, I am going to have to > abandon PHP on this project or even this project altogether. Is this supposed to make people so worried that they will answer your question? I doubt anybody cares if you switch. -Rasmus

« previous php.general (#798) next »