View Single Post
  #1 (permalink)  
Old 09-13-2007, 09:35 PM
walkerasindave walkerasindave is offline
Member
 
Join Date: Mar 2007
Location: Bristol, UK
Posts: 32
Default PHPMailer fails on port 25. Is using port 26 ok?

Hi

I've recently found a problem with all my scripts that rely on phpmailer. 99% of the time they are getting a Timeout Error when connecting using fsockopen() on port 25 of the mail host:

Warning: fsockopen() [function.fsockopen]: unable to connect to mail.tmtg.org.uk:25 (Connection timed out) in ... etc.

The mail host/server is was working fine remotely from my email client and the webmail interface so I tried playing around to fix the problem.

After a while, just randomly I tried incrementing the port number to 26. To my surprise it worked perfectly and the email got delivered exactly as required.

Is it ok to use port 26?

If it isn't how can I stop port 25 failing?
Reply With Quote