RE: [PHP-GENERAL] sendmail -t won't work

From: Date: Fri, 09 Jun 2000 08:39:13 +0000
Subject: RE: [PHP-GENERAL] sendmail -t won't work
Groups: php.general 
Request: Send a blank email to php-general+get-1375@lists.php.net to get a copy of this message
I know this doesn't solve the problem, but why are you doing things the long way round when you have a mail() function built in? > -----Original Message----- > From: Lars FORNELL [mailto:lars.fornell@limelab.com] > Sent: 09 June 2000 09:14 > To: php-general@lists.php.net > Subject: [PHP-GENERAL] sendmail -t won't work > > > I have a big problem having sendmail to work through PHP scripts. > > We have a RedHat6.2 Linux server with Apache 1.3.12 and PHP4 > installed. > > This is script: > > $sendmail = "/usr/lib/sendmail"; > $fp = popen( "$sendmail -t", "w"); > > fwrite($fp, "To: $firstname $lastname <$useremail>\n"); > fwrite($fp, "From: Lars FORNELL <lars.fornell@limelab.com>\n"); > fwrite($fp, "Subject: Test\n"); > fwrite($fp, "Organization: Test\n\n\n"); > fwrite($fp, "$subject\n"); > > pclose($fp); > > This is what the maillog looks like: > > Jun 8 06:07:03 linux845 sendmail[24641]: GAA24641: to=Lars FORNELL > <lars.fornell@limelab.com>, delay=00:00:00, mailer=local, stat=User > unknown > > But no mails get send, maybe because of the "stat=User unknown" in the > log, but how can I avoid that? > > > Thanks in advance; > > Lars -- This communication contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s), please note that any distribution, copying or use of this communication or the information in it is strictly prohibited. If you have received this communication in error, please notify the sender immediately and then destroy any copies of it.

« previous php.general (#1375) next »