problem connecting to Mailserver

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rui_louis
Forum Newbie
Posts: 2
Joined: Fri Aug 08, 2008 11:28 am

problem connecting to Mailserver

Post by rui_louis »

Hello all,

I'm gonna make it short; I'm getting the following error:

Code: Select all

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:\...\htmlMimeMail5\htmlMimeMail5.php on line 734
 
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:\....php on line 401
When I tried to notify a user of his registration result by mail. My script used to work for 1 year or more, but all of a sudden, 2 day back, it started giving this error out. I did not change any server config (nor Apache, Nor php.ini). I got 2 registration or more everyday, so I knowm precisely that this used to work fine for this long and that it suddenly fail sending mail.

The only things I did during this time is installing Joomla 1.5.3, on the same server, on a different domain and folder.

I did google for an answer but nothing satisfying up to now.

Could someone be so kind to give me some clue?

thanks

Rui
User avatar
ghurtado
Forum Contributor
Posts: 334
Joined: Wed Jul 23, 2008 12:19 pm

Re: problem connecting to Mailserver

Post by ghurtado »

Sounds like your mail server took a dive.
rui_louis
Forum Newbie
Posts: 2
Joined: Fri Aug 08, 2008 11:28 am

Re: problem connecting to Mailserver

Post by rui_louis »

Anf is there a way to check that/repear it ?
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

Re: problem connecting to Mailserver

Post by susrisha »

Two things to be checked:

I know u didnt change any configuration files but just to be sure.. check if the smtp port number in the php.ini is still the same..(25)

Second thing:

Do confirm with your service provider (Internet connection provider) if he has got a mailing system recently.. I had a similiar problem with SMTP. My internet Service Provider introduced a mailing service which blocks the port 25 for him and i cannot send emails through the same..
Post Reply