Page 1 of 1

SMTP Error

Posted: Wed Dec 12, 2018 6:37 pm
by monikvivek
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

OK

<br />
<b>Fatal error</b>: Uncaught exception 'Exception' with message 'Error: EHLO not accepted from server!' in /home/sites/4a/8/88aab10a02/public_html/ekpek.com/system/library/mail/smtp.php:120
Stack trace:
#0 /home/sites/4a/8/88aab10a02/public_html/ekpek.com/system/library/mail.php(142): Mail\Smtp-&gt;send()
#1 /home/sites/4a/8/88aab10a02/public_html/ekpek.com/catalog/controller/mail/order.php(275): Mail-&gt;send()
#2 /home/sites/4a/8/88aab10a02/public_html/ekpek.com/catalog/controller/mail/order.php(34): ControllerMailOrder-&gt;add(Array, '1', '', '')
#3 [internal function]: ControllerMailOrder-&gt;index('checkout/order/...', Array)
#4 /home/sites/4a/8/88aab10a02/public_html/ekpek.com/system/storage/modification/system/engine/action.php(79): call_user_func_array(Array, Array)
#5 /home/sites/4a/8/88aab10a02/public_html/ekpek.com/system/engine/event.php(62): Action-&gt;execute(Object(Registry), Array)
#6 /home/sites/4a/8/88aab10a02/public_html/ekpek.com/system/storage/modification/system/engine/loader.php(237): Event-&gt;trigger('model/checkout/...', in <b>/home/sites/4a/8/

Re: SMTP Error

Posted: Wed Dec 12, 2018 7:10 pm
by OSWorX
As the message says: the EHLO command is not accepted by the called server.
Maybe your SMTP settings are not correct, or the called server has some issues.

Beside this: please read first the forum rules!

Re: SMTP Error

Posted: Wed Jul 31, 2019 9:24 am
by erikgrueter
This error occurs when the email server configuration is wrong or incomplete or the server is down.

First, check the SMTP Hostname, if your server use TLS or SSL, you will should type the hostname like this:

tls://[your SMTP Hostname] or ssl://[yout SMTP hostname]

Before, I used a SMTP hostname without tls:// or ssl:// at begin of the address, but now, my server dont accept no connection without the protocol at hostname.

To resolve the server connection down trouble I created an isolated controller to set order status, so, the order never will be lost.

If you call the "addOrderHistory" method twice, at the second time the error will not appear and the order will be writing, and so, you can create a log file reporting the error or notify the store admin by another way.
If the problem remains unresolved,try this : https://docsbay.net/fix-smtp-server-error-in-email