xwielder Posted December 14, 2006 Share Posted December 14, 2006 OS: Windows Server 2003 SP1 Standard EditionWeb Server: Apache 2.0.59MySQL: MySQL 5.0.24aPHP: PHP 5.2.0SMTP: IISPOP3: Windows Server Built in POP3 service[This is all on my personal machine.]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~### Data within my php.ini file[mail function]; For Win32 only.SMTP = 192.168.0.10smtp_port = 25; For Win32 only.sendmail_from = myself@mysite.com# Note: The php.ini file is in the C:\WINDOWS directory and yes, that's where it's being referenced from.# Note: Registered Globals are set to ON~~~~~~~~~~~~~~~~~~~~~~~~~~~~~### Here is my errorWarning: mail() [function.mail]: Failed to connect to mailserver at "192.168.0.10" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Apache2\htdocs\www.mysite.com\myform.php on line 75~~~~~~~~~~~~~~~~~~~~~~~~~~~~~### Mail function of myform.phpLine(57) <?phpLine(58) if ($StaffName) Line(59) {Line(60) $yeshow = "Line(61) Summary notes/comments:Line(62) -----------------------Line(63) Line(64) $Summary_notes_commentsLine(65) Line(66) -----------------------Line(67) FROM: $StaffTitle-$StaffNameLine(68) DEPARTMENT: $DEPARTMENT";Line(69) }Line(70) Line(71) mail($toemail,"$subject","Line(72) Line(73) $yeshowLine(74) Line(75) ","From: $StaffName");Line(76) Line(77) header("Location: $sendpage");Line(78) exit();Line(79) }Line(80) ?>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~There should be absolutely no reason (that I can see) why I receive the mail() error as stated above.This has worked flawlessly in the past for over a year, but has failed to work recently.For ScreenShots of my IIS SMTP settings, they're here: http://www.TheComputerProfessional.com/mailerrorIf there's any other info you need to know and/or see to further troubleshoot this error, please let me know and I'll provide it. Quote Link to comment Share on other sites More sharing options...
SharkBait Posted December 14, 2006 Share Posted December 14, 2006 Have you tried to telnet into your SMTP server? Issued the helo (can't remeber if that is it) command and sent the basic email? Quote Link to comment Share on other sites More sharing options...
xwielder Posted December 14, 2006 Author Share Posted December 14, 2006 C:\Documents and Settings\Administrator>telnet 192.168.0.10 25Connecting To 192.168.0.10...Could not open connection to the host, on port 25:Connect failed Quote Link to comment Share on other sites More sharing options...
SharkBait Posted December 14, 2006 Share Posted December 14, 2006 So that means SNMP service is not running or a firewall is blocking port 25 :) Quote Link to comment Share on other sites More sharing options...
xwielder Posted December 14, 2006 Author Share Posted December 14, 2006 [img]http://www.thecomputerprofessional.com/mailerror/_images_/screenshot007.jpg[/img]SMTP and SNMP are both running.Windows Firewall is turned off and I'm not running any other type of firewall at all.(I turned it all off to troubleshoot this problem)[attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
xwielder Posted December 14, 2006 Author Share Posted December 14, 2006 ** UPDATE **I would just like to say that I've resolved my issue.Here is how it was resolved:I downloaded the SMTPDIAG tool from microsoft and ran it.Everything was passing except for the last part which gave me an "Error 10053"After googling that error, I was pointed here: http://kbase.pscs.co.uk/index.php?article=242It seems that McAfee was blocking port 25. After unchecking the block, presto. I can telnet port 25 and continue all SMTP functions normally.I no longer receive the original error message that prompted this entire investigation.I wish to thank all of you who replied and/or read this post.Cheers to all. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.