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( [EMAIL PROTECTED], "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 [EMAIL PROTECTED] www.hamanndonald.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]