I get an error while setting up SMTP with port 465.
Connection: opening to ssl://........:465, timeout=300, options=array()
Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://.......:465 (Connection refused) [/var/www/html/moodle/lib/phpmailer/src/SMTP.php line 349]
SMTP ERROR: Failed to connect to server: Connection refused (111)
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Can you please help me, with this?