ID: 15373 Comment by: kivin_kong at hotmail dot com Reported By: alonso at admintek dot net Status: No Feedback Bug Type: Mail related Operating System: win2000 PHP Version: 4.2.1 Assigned To: mfischer New Comment:
i have windows server 2003 R2 with IIS and php 5.2.3 and the mail() function ain't working the i use my ISP DNS server and not workin don't know what to do can someone help it is a recruitment form trying to send it to my email [EMAIL PROTECTED] Previous Comments: ------------------------------------------------------------------------ [2006-10-05 05:15:04] bigredraddish at hotmail dot com XP PRO SP2 PHP 5.1.6 This is the error 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() in D:\www\htdocs\sendmail.php on line 43 this is line 43 of my php mail script mail("[EMAIL PROTECTED]", $subject, $message, $from); This is my PHP.INI [mail function] ; For Win32 only. SMTP = smtp.dodo.com.au ; For Win32 only. sendmail_from = [EMAIL PROTECTED] ------------------------------------------------------------------------ [2006-07-21 12:44:33] ishongwe at yahoo dot com Is it possible to use the mail() function without any network connection on windows xp, and if possible how do you do it on the php.ini? Remember: Everything seem to be working fine except the mail() function, yet. Thanks in advance ------------------------------------------------------------------------ [2005-10-01 16:26:07] morebiz at gmail dot com Hi, I have problem like this too. I try to change to windows 2003 server with php and it work. After I install antivirus program, can not send mail. So I just know the reason is Antivirus program !!!. Now i new install Wins XP Apache+Php and config my antivirus program It Work !!. Please check your anivirus program. Good luck. Greeting from webmaster Thailand. ------------------------------------------------------------------------ [2003-12-19 12:31:03] georgealbert2001 at yahoo dot com i have win98 and iam using devshed ,and i download easy SMTP to make my PC an SMTP server i always try to send mail but i fail could someone tell me how to cofig to send the email ------------------------------------------------------------------------ [2003-11-16 18:59:02] doug32x at hotmail dot com OS Windows XP home Editio Server Apache 1.3.28 PHP 4.3.3 I tried doing this: <?PHP ini_set('smtp_port','25'); mail("[EMAIL PROTECTED]","Hi","Message") ?> I get this: 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(). I tried by changin the php.ini and it does not work :( I hope you can help me Thanks a lot ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/15373 -- Edit this bug report at http://bugs.php.net/?id=15373&edit=1