Jump to content

Recommended Posts

Posted

Hi Admin,

 

Last few days I had an working php script which allowed me to send email using PHP PEAR by connecting to an external SMTP server (smtp.yandex.com).

 

However, since last 2 days probably I can see that the php script is unable to connect to the smtp server and thus not being able to send emails.

 

I have tested with following script to find out that somehow, heliohost is probably blocking the access to the smtp server / port. Since, I found this script being able to connect from a different php host. Can you please check and let me know what went wrong recently that I'm unable to connect to smtp server in question.

Test Script:

<?php
$timeout = 30; // your own timeout value
$connection_type = 'ssl'; // may be ssl, sslv2, sslv3 or tls
$host = 'smtp.yandex.com';
$port = 465;

$fp = stream_socket_client("{$connection_type}://{$host}:{$port}", $errno, $errstr, $timeout);

if (!$fp) {
    echo "$errstr ($errno)";
} else {
    echo "Connection established";
}
?>

Looking forward for your help!

Posted

Your link says connection established now.

 

This is kind of strange... I have been re-trying a number of times since your last reply, but still getting same timeout message.

To rule out possibilities of cached results, I have even tried accessing from different browsers, including my mobile browser over a different internet connection (though this has nothing to do with my internet connection).

 

Attached is the screenshot:

2017_01_31_12_10_09_Mozilla_Firefox.png

Posted

Update:

I see it working now, and getting "Connection established" message.

 

Hope this problem solved completely... I will get back if the problem re-appears. Hope not... :)

Posted

Update:

I see it working now, and getting "Connection established" message.

 

Hope this problem solved completely... I will get back if the problem re-appears. Hope not... :)

 

Dear Admin...

The problem is occurring again, it's giving connection timeout error.. Please help me with a stable solution.

 

Thanks!

  • 1 month later...
Posted

Dear Admin,

 

I am opening up this old thread again since the same problem have re-surfaced again.

 

My application is unable through smtp.yandex.com as I am getting connection timed out message.

 

A connection test script can be found at http://kotha.heliohost.org/testmail.php

 

The issue is occurring since 24th March, approximately.

  • 1 month later...
Posted

Dear Admin,

 

This same issue is happening again. Please look into the matter urgently.

 

You can also test if it's working by going to the url already mentioned in previous post in this thread.

 

The issue has started since last 24hours approximately.

 

Expecting your fast resolution..

Posted

After your firewall restart it worked for for few hours, again same problem.

I am fed up... please give a permanent solution.

 

Respond at the earliest pls.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...