A partial archive of https://discourse-mediawiki.wmflabs.org as of Saturday May 21, 2022.

Failed to connect to ssl://smtp.gmail.com:465 [SMTP: Failed to connect socket: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Unknown error) (code: -1, response: )]

nooobie

Hello,

I need help :frowning:

“I am using latest version of XAMPP on Windows Server 2008 R2 to deploy latest: mediawiki”

on localsettings.php

Using SSL:

   $wgSMTP = array(  
       'host' => 'ssl://smtp.gmail.com',
       'IDHost' => 'gmail.com',
       'port' => 465,
       'username' => 'my-email@gmail.com', 
       'password' => 'mypasswd',
       'auth' => true
   );

Got this error:

“Failed to connect to ssl://smtp.gmail.com:465 [SMTP: Failed to connect socket: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Unknown error) (code: -1, response: )]”

Using TLS:

  $wgSMTP = array(  
       'host' => 'smtp.gmail.com',
       'IDHost' => 'gmail.com',
       'port' => 587,
       'username' => 'my-email@gmail.com', 
       'password' => 'mypasswd',
       'auth' => true
    );

Got this error:

“Mailer returned: authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Ready to start TLS)]”

I also tried changing the [mail function] on C:\xampp\php\php.ini

and [sendmail function] on C:\xampp\sendmail\sendmail.ini.

but doesnt work. :frowning:

I really want this to work coz it means a lot to me, any help would be very much appreciated.

Thank you.

//my antivirus and firewall is turn off//

Tgr

There was a similar question recently:


Seems like MediaWiki is using a broken library.

aklapper

See https://www.mediawiki.org/wiki/Topic:U8iushemsl8txry8 (as I don’t see how this is a development question)…