Laminas\Mail\Protocol\Exception\RuntimeException error

These are lines which I edited to configure the smtp settings from settings.php. Something must be wrong that sending mesages or liking a post causes error "Laminas\Mail\Protocol\Exception\RuntimeException". 

---

/**
 * Configure emailer transport
 *
 * This setting can be used to select a different emailer transport. By default the Laminas Sendmail Transport is used.
 * Currently only 'smtp' and 'sendmail' are supported as a different configuration.
 * For 'smtp', the SMTP server's settings must be set, while 'sendmail' requires no configuration.
 *
 * @global string $CONFIG->emailer_transport
 */

$CONFIG->emailer_transport = 'smtp';

/**
 * Configure sendmail related settings
 */

$CONFIG->emailer_sendmail_settings = 'smtp';

/**
 * Configure emailer SMTP settings
 *
 * This setting is only necessary if the above emailer transport is set to 'smtp'.
 * Please refer to https://docs.laminas.dev/laminas-mail/transport/smtp-options/#configuration-options
 * and https://docs.laminas.dev/laminas-mail/transport/smtp-authentication/#examples
 */

$CONFIG->emailer_smtp_settings = array(
// 'name'              => 'localhost.localdomain',
'host'              => 'ni-chrome.guzelhosting.com',
'port'              => 465,
'connection_class'  => 'login',
'connection_config' => [
'username' => 'noreply@ahalim.com',
'password' => '*******',
'ssl'      => 'tls', // OPTIONAL (tls or ssl)
'port'     => '587', // OPTIONAL (Non-SSL default 25, SSL default 465, TLS default 587)
// 'use_complete_quit' => '', // OPTIONAL
],
);

---

My coding experience is poor.  I need your help. The error log belong this is below

Laminas\Mail\Protocol\Exception\RuntimeException: Could not read from ni-chrome.guzelhosting.com in .../.../ahalim.com/vendor/laminas/laminas-mail/src/Protocol/AbstractProtocol.php:298

Stack trace:

#0 .../.../ahalim.com/vendor/laminas/laminas-mail/src/Protocol/AbstractProtocol.php(326): Laminas\Mail\Protocol\AbstractProtocol->_receive(300)

#1 .../.../ahalim.com/vendor/laminas/laminas-mail/src/Protocol/Smtp.php(277): Laminas\Mail\Protocol\AbstractProtocol->_expect(Array, 300)

#2 .../.../ahalim.com/vendor/laminas/laminas-mail/src/Transport/Smtp.php(396): Laminas\Mail\Protocol\Smtp->helo('localhost')

#3 .../.../ahalim.com/vendor/laminas/laminas-mail/src/Transport/Smtp.php(378): Laminas\Mail\Transport\Smtp->connect()

#4 .../.../ahalim.com/vendor/laminas/laminas-mail/src/Transport/Smtp.php(389): Laminas\Mail\Transport\Smtp->lazyLoadConnection()