Smtp error gmail

3: Connection: opening to ssl://smtp.gmail.com:587, timeout=300, options=array()
3: Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number [/var/www/clients/client0/web1/web/vendor/phpmailer/phpmailer/src/SMTP.php line 349]
3: Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [/var/www/clients/client0/web1/web/vendor/phpmailer/phpmailer/src/SMTP.php line 349]
3: Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://smtp.gmail.com:587 (Unknown error) [/var/www/clients/client0/web1/web/vendor/phpmailer/phpmailer/src/SMTP.php line 349]
1: SMTP ERROR: Failed to connect to server: (0)
3: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

What???

have you searched forum with your issue? Check the following thread.

I’ve set everything you mentioned. I’m sure I made these settings correctly. The error I shared shows another problem.

I’ll repeat what you say again and again.