I am getting an error message when sending a test mail after setting up email configuration
Email configuration
Host: smtp.gmail.com
Port: 587
Encryption: ssl
Username: myaccount@gmail.com
Password: my google password
Error in log:
flarum.ERROR: Swift_TransportException: Connection could not be established with host smtp.gmail.com :stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:0A00010B:SSL routines::wrong version number in /home/[masked]/public_html/flarum/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:261
Flarum installation details:
Flarum 1.8.5
PHP 8.2.21
MySQL 10.6.18-MariaDB-cll-lve
Can anybody suggest what I need to do/investigate to fix this?
Andy