SMTP -> ERROR: Failed to connect to server: Unable to find the socket transport “ssl”

When testing new Xampp, had this trouble on using the mail using localhost even though i’m using gmail as a sender… The thing is I can’t seem to find ;extension=php_openssl.dll in my php.ini configuration so I just added it then it worked

  1. Stop your Apache service
  2. Find libeay32.dll and ssleay32.dll in xamppphp folder, and copy it into xamppapachebin folder. Overwrite the older files in there.
  3. Edit php.ini file in xamppapachebin, remove the semicolon in “;extension=php_openssl.dll” or add the code extension=php_openssl.dll
  4. Start the Apache service