note 74252 deleted from function.mail by philip

From: Date: Sun, 01 Apr 2007 09:45:42 +0000
Subject: note 74252 deleted from function.mail by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-125000@lists.php.net to get a copy of this message
Note Submitter: ---- Hi Folks, I need some help: this is my code: <?php if (mail("asdf@hotmail.com","testing Subject","Testing Body.", "From: asdf@hotmail.com")) { echo "Successful"; } else { echo "failed"; } ?> This is my config. in php.ini file: ; For Win32 only. SMTP = localhost smtp_port = 80 When I open my php page, it fails with this error: [error] [client 127.0.0.1] PHP Warning: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at &quot;localhost&quot; port 80, verify your &quot;SMTP&quot; and &quot;smtp_port&quot; setting in php.ini or use ini_set() in C:\\Work\\Mysite\\mailAction.php on line 2 localhost:80 on my browser takes me to my project index page. I am wondering if that is the same as the SMTP server and host. I would like to run this feature from my local computer. Please Help!

« previous php.notes (#125000) next »