SMTP ErrorFailed to connect to server: Connection timed out (110)

SMTP server settings : mail.adm.tools (ошибка SMTP ErrorFailed to connect to server: Connection timed out (110))

This problem related PHPmailer server name checking mechanism

My solution :

1 - Edit this file
app\Tygh\Mailer\Transports\PhpMailerTransport.php

2- Find

        $this->SMTPSecure = $settings['mailer_smtp_ecrypted_connection'];

3 - Add this lines

$this->SMTPOptions = array(
 'ssl' => array(
 'verify_peer' => false,
 'verify_peer_name' => false,
 'allow_self_signed' =>true
 )
);

if ($method === ‘smtp’) {
$this->isSMTP();
$this->SMTPAuth = $settings[‘mailer_smtp_auth’] === YesNo::YES;
$this->Host = $settings[‘mailer_smtp_host’];
$this->Username = $settings[‘mailer_smtp_username’];
$this->Password = $settings[‘mailer_smtp_password’];
$this->SMTPSecure = $settings[‘mailer_smtp_ecrypted_connection’];

        $this->SMTPOptions = array(
            'ssl' => array(
            'verify_peer' => false,
            'verify_peer_name' => false,
            'allow_self_signed' =>true
            )
           );
    } elseif ($method === 'sendmail') {
        $this->isSendmail();
        $this->Sendmail = $settings['mailer_sendmail_path'];
    } else {
        $this->isMail();
    }

not help me(

to show problem details, add this line
$this->SMTPDebug = 3;

before
$this->isSMTP();

and try again

Please try to specify different ports in the connection settings for this server: 25, 465, 587.