Re: Question about the mail() php function

From: Date: Sat, 24 Apr 2004 05:37:24 +0000
Subject: Re: Question about the mail() php function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-184492@lists.php.net to get a copy of this message
Sounds like you don't have a mail server running on localhost at port 25. If you do have a mail server running, then it seems to me that you should 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. Just paraphrasing here. cheers, Travis Shawn Inder wrote:
Hello, I was browsing your site and came across the mail() PHP function. I tryed it out: <?php mail("tha_sod@hotmail.com", "My Subject", "Line 1\nLine 2\nLine 3"); ?> tha_sod@hotmail.com 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) _________________________________________________________________
STOP MORE SPAM with the MSN Premium and get 2 months FREE*    http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines 
-- Travis Low <mailto:travis@dawnstar.com> <http://www.dawnstar.com>

« previous php.general (#184492) next »