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.
Any ideas?
As a side note, why does the troubleshooting link refer to PHPMailer, which I'm not using?


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

Best regards


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 = '';

//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’;


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 (, mail, pass), I generated a new App password, but I still get this error:
"ErrorMessage could not be sent.
Mailer Error: SMTP connect() failed.".
Does anyone have a solution to this problem?
Thank you, Alex