Re: mail() gives Unknown error from command line...

From: Date: Wed, 16 Jan 2002 03:01:38 +0000
Subject: Re: mail() gives Unknown error from command line...
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-11467@lists.php.net to get a copy of this message
I mean... <? mail( "usr@srv.org", "subject", "test" ); ?> "Jeff D. Hamann" <jeff_hamann@hamanndonald.com> wrote in message news:20020116025717.36249.qmail@pb1.pair.com... > Why does this one line script execute when run from the web browser and not > from the command line? That is to say, when I run this one line script in a > web browser, the code executes, mail is sent, and I'm happy. When I attempt > to execute the script from the command line "php < mailtest.php", it doesn't > work. > > <? > mail( usr@srv.org, "subject", "test" ); > ?> > > this yields when run from the command line... > > X-Powered-By: PHP/4.0.6 > Content-type: text/html > > <br> > <b>Warning</b>: Unknown error in <b>-</b> on line > <b>2</b><br> > > I would like to run this from the command line. > > jeff. > > > -- > Jeff D. Hamann > Hamann, Donald & Associates, Inc. > PO Box 1421 > Corvallis, Oregon USA 97339-1421 > Bus. 541-753-7333 > Cell. 541-740-5988 > jeff_hamann@hamanndonald.com > www.hamanndonald.com > > >

« previous php.windows (#11467) next »