SMTP error : ELGG.ERROR: The input does not match the expected structure for a DNS hostname

Hi everyone,

I am using the latest release of elgg (3.3.18) with smtp authentication. After adding smtp parameters in elgg-config/settings.php, I got some errors when a mail is sent.

Here is my configuration.

$CONFIG->emailer_transport = 'smtp';

$CONFIG->emailer_smtp_settings = array(
        'name'              => 'GEEK XXXX',
        'host'              => 'mail.pyngescol.com',
        //'port'              => 25,
        'connection_class'  => 'login',
        'connection_config' => [
                'username' => 'info@pyngescol.com',
                'password' => 'xxxxxxxx',
                'ssl'      => 'tls', // OPTIONAL (tls or ssl)
                'port'     => '587', // OPTIONAL (Non-SSL default 25, SSL default 465, TLS default 587)
                'use_complete_quit' => '', // OPTIONAL
        ],
);

The SMTP is a local hosted server and we use it for some tests, and it works perfectly on other apps.

Here are the errors trigger when the email is sent.

The input does not match the expected structure for a DNS hostname, The input does not appear to be a valid URI hostname, The input does not appear to be a valid local network name.

I need help.

Regards,

 

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking