cearlp Posted November 25, 2008 Share Posted November 25, 2008 In my php.ini fille I have SMTP = localhost, smtp_port = 25 and sendmail_from = me@localhost Running my php script gives me the following 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 C:\Program Files\Apache2.2\htdocs\mail-comments.php on line 29. I have tried several different ini_set("sendmail_from", "xxx@yyy.com") lines in the php script but always get the same error. Is there something specific about the sendmail_from variable that I am overlooking? Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted November 25, 2008 Share Posted November 25, 2008 Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting Do you have a mail server on localhost using port 25? Quote Link to comment Share on other sites More sharing options...
cearlp Posted November 25, 2008 Author Share Posted November 25, 2008 I am running XP so I have a sendmail.dll but I don't know if anything else is using port 25. Is there a way to out? Quote Link to comment Share on other sites More sharing options...
webmaster1 Posted November 25, 2008 Share Posted November 25, 2008 I think SKYPE may block certain ports. I had a similar problem with XAAMP Download a free port checker. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted November 25, 2008 Share Posted November 25, 2008 I have a sendmail.dll That is not a mail server. Quote Link to comment Share on other sites More sharing options...
cearlp Posted November 26, 2008 Author Share Posted November 26, 2008 Responding to the two previous replies --- A port checker shows on;y port 80 as being active (naturally since I am using http to run the port checker ) and I know sendmail.dll is not a mailserver but I thought since I only have Outlook Express as a mail program (it's never used though it is installed) it might be using sendmail.dll and tying up port 25. 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.