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!