Page 2 of 3

Re: ERROR: EHLO not accepted from server!

Posted: Wed May 18, 2016 3:10 am
by Ki2bz8NnWWc2Vl7Kei6R
I confirm it, too.

Adding ssl:// in front of the host name solves the problem.
OpenCart Version: 2.1.0.1

Re: ERROR: EHLO not accepted from server!

Posted: Wed Jul 13, 2016 10:42 pm
by Sinto001
I tried this method but I am still getting error in Opencart contact form. I am using Opencart 2.1.0.2. And the error I am getting on form submission is:
Notice: Error: RCPT TO not accepted from server! in /home/sfxc1Xdfr4/public_html/onlineshop/system/library/mail.php on line 346

Re: ERROR: EHLO not accepted from server!

Posted: Tue Aug 09, 2016 9:45 pm
by gowtham.dandu
Still, I am getting the same error
**Notice: Error: MAIL FROM not accepted from server! in /var/www/html/order-online/system/library/mail.php on line 328**
My OC-Version - **2.1.0.1**

**My Mail Settings are**
Mail Protocol : SMTP
Mail Parameters : -fadmin@restroappz.xyz
SMTP Hostname : ssl://smtp.yandex.com
SMTP Username : admin[at]restroappz[dot]xyz
SMTP Password : ******
SMTP Port : 465
SMTP Timeout : 5

Re: ERROR: EHLO not accepted from server!

Posted: Wed Jan 18, 2017 4:13 am
by alirj2010
As crazy as it would sound, if you have not changed anything yet please try only setting the first tap to mail instead of SMTP in opencart setting. somehow this was my solution without having to dig into the codes.

Re: ERROR: EHLO not accepted from server!

Posted: Mon Feb 20, 2017 5:04 pm
by Khal
I am getting the same error on my OC2.0.1.1 when trying to set up SMTP. I have tried all the fixes given on this thread, except changing the server name in mail.php, but I am still getting the same error message: Error: EHLO not accepted from server!

Has anyone found another fix that works other than those given here?

Thank you

Re: ERROR: EHLO not accepted from server!

Posted: Sat Mar 11, 2017 7:29 am
by peppesbodega3
Confirm that it worked for me to with OpenCart 2.3.0.2 on Inmotion Hosting server.

I put the ssl:// before my hostname:
SMTP Hostname: ssl://securexxx.inmotionhosting.com

Only tried on the contact page so hope it works on the rest as well. Nothing worked before.

Re: ERROR: EHLO not accepted from server!

Posted: Thu Oct 19, 2017 7:12 am
by jepi
Hi guys, I had set mail server like you guys, but it still send to spam folder, any idea?

Re: ERROR: EHLO not accepted from server!

Posted: Wed Dec 13, 2017 10:02 am
by atlterry
I'm using 1and1 and I tried all the combinations - support informs me to set auth = true in the smtp.php script but I find that suspect.

ocart Version 3.0.2.0

My settings...
SMTP
-fsales@domain.com
tls://smtp.1and1.com (tried ssl)
sales@domain.com
passwd
587
5

Error.log
[Wed Dec 13 01:37:53.890852 2017] [proxy_fcgi:error] [pid 63256:tid 139974158489344] [client 73.54.186.228:46096] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught exception 'Exception' with message 'Error: EHLO not accepted from server!'

Re: ERROR: EHLO not accepted from server!

Posted: Wed Dec 13, 2017 11:38 pm
by straightlight
Error: EHLO not accepted from server!'
Contact your host or google for your email account parameters settings.

Re: ERROR: EHLO not accepted from server!

Posted: Wed Aug 15, 2018 12:43 pm
by slewman
#dwsalter settings worked for me also. V2.0.1.2

Re: ERROR: EHLO not accepted from server!

Posted: Thu Oct 25, 2018 4:23 pm
by toonetcreation
Hello,

I have exactly the same issue with open cart 3.0.2.0

From sreveral years everything was fine, and since yesterday I get some issues.

1 ) When I try to register a new account I get this error : ERROR: EHLO NOT ACCEPTED FROM SERVER!
2) on back-end when I try to change order status from pending top complete i get errors as attached.

My SMTP settings are correct and have not been modified since some years.
This is crazy because I have change nothing and yesterday was ok, some users created accounts and today does not work.

Other point very weird, my joomla configuration use SMTP and test mails are sent...same with AcyMailing extension...or with my contact form, mails are sent.
this problem is located only with open cart.

I don't understand why one day everything works and the day after does not work?

Do you have any idea?

Thanks
L

Re: ERROR: EHLO not accepted from server!

Posted: Thu Oct 25, 2018 5:44 pm
by toonetcreation
also, in open cart 3.0.2.0 the line fputs($handle, 'EHLO ' . getenv('SERVER_NAME') . $this->crlf); is not present in file /system/library/mail.php

Re: ERROR: EHLO not accepted from server!

Posted: Thu Oct 25, 2018 5:45 pm
by straightlight
I don't understand why one day everything works and the day after does not work?
Contact your host to check the mail logs activities.

Re: ERROR: EHLO not accepted from server!

Posted: Thu Oct 25, 2018 5:48 pm
by toonetcreation
I'm trying but for the moment I get no answer.
As I'm using OVH smtp server, I don't think the problem is coming from my dedicated server.
I suppose problem is coming from their SMTP server.

Re: ERROR: EHLO not accepted from server!

Posted: Sat Oct 27, 2018 11:43 pm
by straightlight
If you are not receiving response from your host, then perhaps you should consider to switch host for better service quality.

Re: ERROR: EHLO not accepted from server!

Posted: Mon Nov 05, 2018 6:49 pm
by toonetcreation
hello,

the problem is coming again and after spoken with smtp provider, smtp server is working fine.

so what's wrong with open cart?
on day it works and the day after does not work anymore?

I don't understand :-/

Re: ERROR: EHLO not accepted from server!

Posted: Mon Nov 05, 2018 10:58 pm
by ADD Creative
Most likely your host has upgraded something that has added an extra requirement for the SMTP connection.

Have you tried added ssl:// to the front of your SMTP hostname and using port 465 or tls:// and port 587?

The line with SERVER_NAME you were looking for is in the link below. Check the whole file matches yours.
https://github.com/opencart/opencart/bl ... p.php#L102

You can use phpinfo to find out what SERVER_NAME is set to. Put the following in a info.php file and goto in a web browser. Remember to remove afterwards.

Code: Select all

<?php phpinfo(); ?>
If you are still having problems and your host is not forthcoming with mail logs. You could temporarily change the lines at the links below to give yourself more debug information.
https://github.com/opencart/opencart/bl ... p.php#L120
https://github.com/opencart/opencart/bl ... p.php#L157

From:

Code: Select all

throw new \Exception('Error: EHLO not accepted from server!');
To:

Code: Select all

throw new \Exception('Error: EHLO not accepted from server! - ' . $reply);
If you mail domain is the same as your shop domin, have you tried setting the Mail Protocol to Mail?

Re: ERROR: EHLO not accepted from server!

Posted: Mon Nov 05, 2018 11:24 pm
by toonetcreation
configuration was set up with ssl:// since the beginning.
I have tired now with tls:// and works fine many thanks :)
for info SERVER_NAME variable is the domain like this : www.my_website.com
so thats means host has changed something to SMTP server connection/authentification ?

Re: ERROR: EHLO not accepted from server!

Posted: Tue Nov 06, 2018 1:23 am
by ADD Creative
If tls:// now works, it means the you host has remove the old SSL protocols from their server. This is a good thing as the old SSL protocols have known vulnerabilities. It's just that your host, like a lot of them, aren't very good at informing their customers of these changes.

Re: ERROR: EHLO not accepted from server!

Posted: Tue Nov 06, 2018 2:06 am
by toonetcreation
Yes you're.
This is the only problem : information for customers.
I will ask them to get infos.

Thanks again ;-)