QUOTE (Serg @ Feb 18 2009, 11:38 AM)

PHPMailer fails to connect to our SMTP server (mail.tflex.com) from php script running at tflex.com, but succeeds when running the same php code from another server. Both mail.tflex.com and tflex.com are hosted with Networksolutions. The error message:
Warning: fsockopen()
[function.fsockopen]: unable to connect to mail.tflex.com:2525 (Connection timed out) in /data/16/1/74/150/1074802/user/1113869/htdocs/temp/phpmailer/class.smtp.php on line 105 SMTP -> ERROR: Failed to connect to server: Connection timed out (110) There was an error in sending mail, please try again at a later time SMTP Error: Could not connect to SMTP host.
This is caused because our hosting server doesn't allow external SMTP connections.
Instead, use
localhost as your SMTP server and port 25.