WorryFree Computers   »   [go: up one dir, main page]

Troubles about email?

I can only use smtp to send email and I set it in setting.php. However, it does not work. 

$CONFIG->emailer_transport = 'smtp';

$CONFIG->emailer_smtp_settings = array(

'name'              => 'noreply@***.***.***',

'host'              => '***.***.***',

'connection_class'  => 'login',

'connection_config' => [

'username' => 'noreply@***.***.***',

'password' => '*******',

'ssl'      => 'tls', // OPTIONAL (tls or ssl)

'port'     => '465', // OPTIONAL (Non-SSL default 25, SSL default 465, TLS default 587)

'use_complete_quit' => '', // OPTIONAL

],

);

Is it right? And my server bans port 25 but 465 is ok. 

It makes me mad:( I know it is a strange questions with so many things to deal with. Other options are ok.

Closed437 views

Answers (1)

  • I don't know the Email configuration very well.

    But I can assume that port 25 is the default used for non-SSL connections, 465 for SSL, and 587 for TLS.

    Learn more examples.

    Elgg docs also.

    But you'd better ask the hosting support about it.