note 74252 added to function.mail
| From: | php-general at lists dot php dot net | Date: | Sun, 01 Apr 2007 03:45:08 +0000 |
| Subject: | note 74252 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124986@lists.php.net to get a copy of this message | ||
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
"localhost" port 80, verify your "SMTP" and
"smtp_port" 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!
----
Server IP: 66.207.199.35
Probable Submitter: 64.230.55.130
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit -- https://master.php.net/note/edit/74252
Del: integrated -- https://master.php.net/note/delete/74252/integrated
Del: useless -- https://master.php.net/note/delete/74252/useless
Del: bad code -- https://master.php.net/note/delete/74252/bad+code
Del: spam -- https://master.php.net/note/delete/74252/spam
Del: non-english -- https://master.php.net/note/delete/74252/non-english
Del: in docs -- https://master.php.net/note/delete/74252/in+docs
Del: other reasons-- https://master.php.net/note/delete/74252
Reject -- https://master.php.net/note/reject/74252
Search -- https://master.php.net/manage/user-notes.php