note 35689 added to function.mail
| From: | admin at amzadi dot com | Date: | Thu, 11 Sep 2003 04:56:47 +0000 |
| Subject: | note 35689 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-56048@lists.php.net to get a copy of this message | ||
I get this error because I need to authenticate a user name and password with my own smtp mail
server. How do I add this so my mail will work?
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25,
verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
It works fine if I disable authentication but then spammers send thousands of emails through my smtp
server. Running Windows 2000 Server, 2003 Exchange Server and IIS v5
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35689
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35689&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35689&report=yes