Go Back   Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum > Support > php issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-13-2007, 09:35 PM
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
  #2 (permalink)  
Old 09-13-2007, 09:49 PM
Administrator
 
Join Date: Mar 2006
Posts: 1,702
Default

using port 26 would be wise move

I am not sure on which server you are hosted but our server had similar problem so I started using port 26 till someone could fix problem with port 25.

I never switched back to port 25 as the results with port 26 are superb
__________________
Web Hosting UK - ASP MSSQL Hosting - cPanel Linux Hosting
AIM : webredback || msn : andrew @ webhosting.uk.com
Toll Free : 0808 262 0855
Reply With Quote
  #3 (permalink)  
Old 09-13-2007, 09:52 PM
Member
 
Join Date: Mar 2007
Location: Bristol, UK
Posts: 32
Default

Cool I'll stick with 26 then.

It does seem to be quite a bit faster than when port 25 was working

Thank you.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:21 AM.
Copyright 2002-2007 WebHosting.uk.com. All rights reserved.
Web Hosting UK Forum