Third party SMTP server could not be connected

Dear Community,

We are facing some issues to send emails from our PHP script hosted on cPanel hosting via third party (smtp.yandex.ru:465 SSL) SMTP service. It seems to be blocking the connection or port, or something else. Could you please help us to resolve the problem?

 

Regards,