Internet Explorer is not supported. Please upgrade to a more modern browser.
Please help, how can I fix this? I am trying to use my ISP to send verification email:
2024-03-28 10:21:50 Connection: opening to ssl://mail.optusnet.com.au:465, timeout=15, options=array()
2024-03-28 10:21:51 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://mail.optusnet.com.au:465 (Connection refused) [/home/annettej/straya.biz/vendor/phpmailer/phpmailer/src/SMTP.php line 397]
2024-03-28 10:21:51 SMTP ERROR: Failed to connect to server: Connection refused (111)
SMTP Error: Could not connect to SMTP host. Failed to connect to server
I have looked and can see no option "secure" in the php
E-mail submission can use two protocols:
core/config.php
, secure
should be set to tls
(default).core/config.php
, secure
should be set to ssl
.
I believe you can add secure into the email section of config.php manually if it is not already present, e.g.
<?php
...
'email' => [
'host' => '',
...
'secure' => 'tls',
],
thanks samerton this helped me, I added the line secure in my config.php to 'ssl' and now my smtp is working fine