Email Setup Error - Mailer Error: Smtp Connect() Failed

Using SMTP Server for sending. All details are 100% correct but I'm getting this error

ErrorMessage could not be sent.
Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Any ideas?
As a side note, why does the troubleshooting link refer to PHPMailer, which I'm not using?

Hello

What version of Multi-Vendor / CS-Cart do you have?

Best regards

Robert

You must to have installed php_openssl.dll, if you use wampserver it's pretty easy, search and apply the extension for PHP.

In the example change this:

//Set the hostname of the mail server
$mail->Host = 'smtp.gmail.com';

//Set the SMTP port number - 587 for authenticated TLS, a.k.a. RFC4409 SMTP submission 465 ssl
$mail->Port = 465;

//Set the encryption system to use - ssl (deprecated) or tls
$mail->SMTPSecure = ‘ssl’;

Hello,

I have a probleme with SMTP mail, and i can' find a solution on cs car 4.3.7 multivendor
Gmail configured correctly in admin (smtp.gmail.com, mail, pass), I generated a new App password, but I still get this error:
"ErrorMessage could not be sent.
Mailer Error: SMTP connect() failed. https://github.com/P...oubleshooting".
Does anyone have a solution to this problem?
Thank you, Alex