mail() gives Unknown error from command line...
| From: | Jeff D. Hamann | Date: | Wed, 16 Jan 2002 02:59:02 +0000 |
| Subject: | mail() gives Unknown error from command line... | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-11466@lists.php.net to get a copy of this message | ||
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