Post by Ki2bz8NnWWc2Vl7Kei6R » Wed May 18, 2016 3:10 am

I confirm it, too.

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


Posts

Joined
Wed May 18, 2016 2:57 am

Post by Sinto001 » Wed Jul 13, 2016 10:42 pm

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
Last edited by straightlight on Wed Aug 10, 2016 12:42 am, edited 1 time in total.
Reason: Added quote tags.

New member

Posts

Joined
Thu Oct 16, 2014 6:29 pm

Post by gowtham.dandu » Tue Aug 09, 2016 9:45 pm

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
Last edited by straightlight on Wed Aug 10, 2016 12:43 am, edited 2 times in total.
Reason: Added quote tags and edited email address.

Newbie

Posts

Joined
Tue Aug 09, 2016 9:39 pm

Post by alirj2010 » Wed Jan 18, 2017 4:13 am

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.

Newbie

Posts

Joined
Thu Jun 02, 2016 5:49 am

Post by Khal » Mon Feb 20, 2017 5:04 pm

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

Active Member

Posts

Joined
Thu May 24, 2012 9:24 pm
Location - Teesside, UK

Post by peppesbodega3 » Sat Mar 11, 2017 7:29 am

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.

Newbie

Posts

Joined
Sun Jan 29, 2017 1:41 am

Post by jepi » Thu Oct 19, 2017 7:12 am

Hi guys, I had set mail server like you guys, but it still send to spam folder, any idea?

Newbie

Posts

Joined
Thu Sep 14, 2017 5:38 am

Post by atlterry » Wed Dec 13, 2017 10:02 am

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!'

Newbie

Posts

Joined
Wed Dec 13, 2017 3:09 am

Post by straightlight » Wed Dec 13, 2017 11:38 pm

Error: EHLO not accepted from server!'
Contact your host or google for your email account parameters settings.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by slewman » Wed Aug 15, 2018 12:43 pm

#dwsalter settings worked for me also. V2.0.1.2

Newbie

Posts

Joined
Thu Aug 29, 2013 12:12 am

Post by toonetcreation » Thu Oct 25, 2018 4:23 pm

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

Attachments

error2.jpg

error2.jpg (22.93 KiB) Viewed 267 times

error1.jpg

error1.jpg (22.92 KiB) Viewed 267 times


New member

Posts

Joined
Thu Feb 08, 2018 5:15 pm

Post by toonetcreation » Thu Oct 25, 2018 5:44 pm

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

New member

Posts

Joined
Thu Feb 08, 2018 5:15 pm

Post by straightlight » Thu Oct 25, 2018 5:45 pm

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by toonetcreation » Thu Oct 25, 2018 5:48 pm

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.

New member

Posts

Joined
Thu Feb 08, 2018 5:15 pm

Post by straightlight » Sat Oct 27, 2018 11:43 pm

If you are not receiving response from your host, then perhaps you should consider to switch host for better service quality.

The most generated errors being found on Opencart forum originates from contributed programming. The increased counters are caused by posted redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by toonetcreation » Mon Nov 05, 2018 6:49 pm

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 :-/

New member

Posts

Joined
Thu Feb 08, 2018 5:15 pm

Post by ADD Creative » Mon Nov 05, 2018 10:58 pm

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?

www.add-creative.co.uk


Active Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by toonetcreation » Mon Nov 05, 2018 11:24 pm

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 ?

New member

Posts

Joined
Thu Feb 08, 2018 5:15 pm

Post by ADD Creative » Tue Nov 06, 2018 1:23 am

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.

www.add-creative.co.uk


Active Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by toonetcreation » Tue Nov 06, 2018 2:06 am

Yes you're.
This is the only problem : information for customers.
I will ask them to get infos.

Thanks again ;-)

New member

Posts

Joined
Thu Feb 08, 2018 5:15 pm
Who is online

Users browsing this forum: No registered users and 24 guests