If I had to take a wild guess I'd say that there's no mail server on your machine that would be capable of accepting email for delivery. And that Warning is PHP's effort to tell you just that.
Hint: google - and I bet most other search engines - give you plenty of sites providing good information on SMTP. When done reading a bit I also recommend php.net/mail and maybe php.net/ini-set. Richard PS: the right place? It is, as long as you've done your homework and made a reasonable effort to figure things out by means of reading documentation and doing a search on the net for the obvious. Saturday, April 24, 2004, 7:02:43 AM, thus was written: > Hello, > I was browsing your site and came across the mail() PHP function. I tryed it > out: > <?php > mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3"); ?>> > [EMAIL PROTECTED] is my e-mail adress, obviously enough.. > The problem is, the e-mail doesn't get sent. > A warning appears on the page: > Warning: mail(): Failed to connect to mailserver at "localhost" port 25, > verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in > C:\Program Files\Abyss Web Server\htdocs\page.php on line 24 > What is this all about? Why wont it work? > Thanks you very much > If this is not the right place to send a question, please tell me where that > right place would be :) > shlagish (or Shawn, you choose) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php