Re: BARE LF in Sending Mail from PHP

From: Date: Fri, 30 Nov 2001 16:00:36 +0000
Subject: Re: BARE LF in Sending Mail from PHP
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-10670@lists.php.net to get a copy of this message
I think you could add the 'fixcrio' command to your QMail startup. Not really fixing the problem, but a workaround nonetheless. HTH Peter "Eric Rosebrock" <ERIC@3dhavoc.net> wrote in message news:20011130153909.45456.qmail@pb1.pair.com... > Hey there, I posted this on the Php.net bug reporting site. Was wondering if > anyone else has noticed the same thing and found a fix for it. > -------------------------- > I am running an apache web server using PHP 4.06 on Windows 2000 Server and > Windows XP (so > we know it doesn't matter the OS as long as it's MS and PHP). Now here's my > delima. > > I can send emails through MS Outlook to my specified mail address just fine. > There's no > problems and it gets delivered right away. But when I try sending an email > through a web > form, the unix mail server running QMail rejects it with an error 451 Bare > LF. > > Here's an example: > > This email was sent from my Outlook Client through Postcast Email Server > Succesfully (I > have XXXX out server names for my protection): > > Thread 1: 23:51:23 [<---] : HELO xxxx.xxxxxx.net > Thread 1: 23:51:23 [--->] : 220 gambit.xxxxxx.net ESMTP > Thread 1: 23:51:23 [<---] : MAIL FROM: <eric@xxxxxx.net> > Thread 1: 23:51:23 [--->] : 250 gambit.xxxxxx.net > Thread 1: 23:51:23 [<---] : RCPT TO: <eric@xxxxx.com> > Thread 1: 23:51:23 [--->] : 250 ok > Thread 1: 23:51:23 [<---] : DATA > Thread 1: 23:51:23 [--->] : 250 ok > Thread 1: 23:51:23 [--->] : 354 go ahead > Thread 1: 23:51:23 [<---] : QUIT > Thread 1: 23:51:24 [--->] : 250 ok 1007074661 qp 3355 > > Now, this email was sent via a php script form through Postcast (I have XXXX > out server > names for my protection): > > Thread 1: 23:37:55 [<---] : HELO xxxxxx.xxxxxx.net > Thread 1: 23:37:55 [--->] : 220 gambit.xxxxxx.net ESMTP > Thread 1: 23:37:55 [<---] : MAIL FROM: <eric@xxxxx.net> > Thread 1: 23:37:55 [--->] : 250 gambit.xxxxx.net > Thread 1: 23:37:55 [<---] : RCPT TO: <eric@xxxxx.com> > Thread 1: 23:37:55 [--->] : 250 ok > Thread 1: 23:37:55 [<---] : DATA > Thread 1: 23:37:55 [--->] : 250 ok > Thread 1: 23:37:56 [--->] : 354 go ahead > Thread 1: 23:37:56 [<---] : QUIT > Thread 1: 23:37:56 [--->] : 451 See http://pobox.com/~djb/docs/smtplf.html. > > > So what's the problem here? Do you think it could be that PHP 4.06 is > spitting out these > bare LF or what? I mean it's obvious that Postmaster Email Server is sending > the mails > just fine from Outlook and Outlook is the source of the mail that sent > succesfully, and > the PHP script is the one that sent Unsuccessfully. > > I have tried at least 6 different SMTP servers for the win32 operating > systems. They all > do the same thing. This is very bad for me because I am having extreme > difficulties > running my site if every member signs up that has a unix email account > running on Qmail, > pukes on me and I have to send the emails directly to them. It's strange. > > I hope we can figure this one out. I have researched the net but not any > information on > this particular configuration. > I would like to add that I have tried a perl script to send emails and it > works fine. No > bare LF. However, I tried to install Sendmail for Windows and I could not > get that to run > from php. So... we are back to square 1. Trying to get the Bare LF out of > SMTP. > Thanks,Eric Rosebrockhttp://wolfenstein.3dhavoc.net > >

« previous php.windows (#10670) next »