note 48644 added to function.mail

From: Date: Mon, 03 Jan 2005 02:10:14 +0000
Subject: note 48644 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-82630@lists.php.net to get a copy of this message
While trying to use the mail() function with windows XP, I could not connect to any SMTP server or localhost. I kept getting the following warning: PHP Warning: mail(): Failed to connect to mailserver at "smtp.itd.umich.edu" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\Apache Group\Apache2\htdocs\test.php on line 19 After about two days of trying to figure out what was wrong, I found out that McAfee was blocking port 25. This might help others who have had the same probelm with the mail() function. So if you can't get the mail() function to work, check your virus scan software or a firewall (including windows firewall) and see if it is blocking port 25. A good source for windows users for the mail function is http://forums.devside.net/viewtopic.php?t=518&start=0 ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48644 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48644&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48644&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48644&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48644&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48644&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48644&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48644&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#82630) next »