I wanted to switch to SMTP instead of the PHP mail function in the Opencart Shop. Have made all the settings and also looked again in the Inet. But unfortunately I always get the error message after completing the order:
***********************************************
Code: Select all
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
OK
<br />
<b>Fatal error</b>: Uncaught Exception: Error: Connection refused (111) in /home/...../public_html/system/library/mail/smtp.php:90
Stack trace:
#0 /home/...../public_html/system/library/mail.php(142): Mail\Smtp->send()
#1 /home/...../public_html/catalog/controller/mail/order.php(275): Mail->send()
#2 /home/...../public_html/catalog/controller/mail/order.php(34): ControllerMailOrder->add(Array, '1', 'Bitte angezeigt...', true)
#3 /home/...../storage/modification/system/engine/action.php(79): ControllerMailOrder->index('checkout/order/...', Array)
#4 /home/...../public_html/system/engine/event.php(62): Action->execute(Object(Registry), Array)
#5 /home/...../storage/modification/system/engine/loader.php(232): Event->trigger('model/checkout/...', Array)
#6 /home/...../public_html/system/engine/proxy.php(47): Loader->{closure}(Array, Array)
#7 /home/...../public_html/catalog/controller/extension/payment/bank_transfer.php(23): Proxy->__call('addOrderHistory', Array)
#8 /ho in <b>/home/...../public_html/system/library/mail/smtp.php</b> on line <b>90</b><br />
It is actually filled in as described on: https://bit.ly/34J4gJz
This is the data from my mail host:
SMTP-Relay
Server : smtp.mailfence.com
User name : Username
Passwort : PW
Secure port : 465
Sicherheit : TLS/SSL
Authentifizierung : normal (PLAIN oder LOGIN)
Does anyone know why I always get these error messages? I have already asked my mail hoster. He says it's not up to you.