Post by mazman » Sun Nov 10, 2024 8:04 pm

All was working fine. I have made no changes. But suddenly mail cannot be sent from my site. I use that mail account for correspondence so the mail account is active.
I don't get emails when orders are placed, and no mail comes through the Contact Us page. Site says the mail went through but it didnt.
All was working fine with outgoing server as ssl://smtp.dreamhost.com using port #465 and then for some reason stopped sending. I tried tls://... with port 587 with same results.
I tried just smtp.dreamhost.com with port 465 and got this fatal error:
Fatal error: Uncaught Exception: Error: EHLO not accepted from server! in /home/paumaz3/mazcrafters.com/system/library/mail/smtp.php:121 Stack trace: #0 /home/paumaz3/mazcrafters.com/system/library/mail.php(142): Mail\Smtp->send() #1 /home/p*******3/mazcrafters.com/catalog/controller/information/contact.php(25): Mail->send() #2 /home/p*******3/storage/modification/system/engine/action.php(79): ControllerInformationContact->index() #3 /home/p*******3/mazcrafters.com/catalog/controller/startup/router.php(25): Action->execute(Object(Registry)) #4 /home/p*******3/storage/modification/system/engine/action.php(79): ControllerStartupRouter->index() #5 /home/p*******3/mazcrafters.com/system/engine/router.php(67): Action->execute(Object(Registry)) #6 /home/p*******3/mazcrafters.com/system/engine/router.php(56): Router->execute(Object(Action)) #7 /home/p*******3/mazcrafters.com/system/framework.php(169): Router->dispatch(Object(Action), Object(Action)) #8 /home/p*******3/mazcrafters.com/system/startup.php(104): require_once('/home/paumaz3/m...') #9 /home/p******3/mazcrafters.com/index.php(19): start('catalog') #10 {main} thrown in /home/p*****3/mazcrafters.com/system/library/mail/smtp.php on line 121
Using version 3.0.3.8
Maybe someone has an idea what may have happened? Thanks.

New member

Posts

Joined
Sun Apr 03, 2022 5:20 am

Post by nonnedelectari » Sun Nov 10, 2024 8:34 pm

Could be that your mail server is just slow at the moment and response time exceeds the timeout.
Problem with OC is that order mail sending is in the critical path of checkout instead of just saving the email for sending afterwards via a scheduled job, if the mail sending fails, the entire checkout fails.

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by khnaz35 » Sun Nov 10, 2024 9:22 pm

Your error likely results from recent changes on Hosting server provider end, such as updated security protocols etc.

you can try contacting your Host to confirm SMTP settings.
Try using smtp port 587 with TLS instead.
Double-check SSL/TLS configuration and make sure OpenCart is updated.

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by paulfeakins » Mon Nov 11, 2024 7:41 pm

mazman wrote:
Sun Nov 10, 2024 8:04 pm
EHLO not accepted from server!
I've seen this one answered on this forum before, have a search.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by khnaz35 » Mon Nov 11, 2024 7:44 pm

I have shared earlier my smtp library on the forum to track these kind of issues.

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by mazman » Mon Nov 11, 2024 8:43 pm

paulfeakins wrote:
Mon Nov 11, 2024 7:41 pm
mazman wrote:
Sun Nov 10, 2024 8:04 pm
EHLO not accepted from server!
I've seen this one answered on this forum before, have a search.
I have searched. And tried all of the remedies that pertained to this situation but none have been successful. Thats why I posted.

New member

Posts

Joined
Sun Apr 03, 2022 5:20 am

Post by nonnedelectari » Mon Nov 11, 2024 9:12 pm

Well, you could add a trace in file system/library/mail/smtp.php
after (line 107 or so):

Code: Select all

			while ($line = fgets($handle, 515)) {
				$reply .= $line;
add:

Code: Select all

error_log('SMTP EHLO responses:' . $line;
then try an email and check your php error log (not the OC one) to see what the smtp server responses are for the EHLO request.

The irony is that the EHLO request is the only one which isn't covered with the "slow server" handleReply function.

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by mazman » Tue Nov 12, 2024 5:29 am

I've contacted the host and they say to just use the smtp.dreamhost.com without tls:// or ssl:// prefix and to use port 587. Also that my email account is alive and well.
I've gone through all the links on this forum I could find and tried every configuration of prefixes and port numbers I can think of. I've double checked that the store email is the same as the one in the 'email' tab.
I've cleared the php log and the OC log and the new logs are are not showing any errors after I try to send an email through contact us or when I place an order.
The good news is that orders are going through and I get notification from the credit card company that a payment has been made, so I can then go in and get the order.
Also I am no longer getting the fatal error (EHLO error)
I'm stuck.

New member

Posts

Joined
Sun Apr 03, 2022 5:20 am

Post by khnaz35 » Tue Nov 12, 2024 9:06 am

mazman wrote:
Tue Nov 12, 2024 5:29 am
I'm stuck.
Since emails are already working—you’re getting "Contact Us" messages, and order emails are going through—can you explain exactly where you’re stuck? This will be helpful in identifying if there’s actually any remaining issue.

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by mazman » Tue Nov 12, 2024 7:39 pm

khnaz35 wrote:
Tue Nov 12, 2024 9:06 am
mazman wrote:
Tue Nov 12, 2024 5:29 am
I'm stuck.
Since emails are already working—you’re getting "Contact Us" messages, and order emails are going through—can you explain exactly where you’re stuck? This will be helpful in identifying if there’s actually any remaining issue.
What I’m trying to say is that even though there are no errors showing up in either error log, I am still not getting order notification emails, nor any contact us emails.

New member

Posts

Joined
Sun Apr 03, 2022 5:20 am

Post by nonnedelectari » Tue Nov 12, 2024 8:42 pm

also not in you spam folder?

Active Member

Posts

Joined
Thu Mar 04, 2021 6:34 pm

Post by paulfeakins » Tue Nov 12, 2024 8:49 pm

mazman wrote:
Tue Nov 12, 2024 7:39 pm
I am still not getting order notification emails, nor any contact us emails.
Have you got all this set up properly?
https://www.antropy.co.uk/blog/emails-g ... kim-dmarc/

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by khnaz35 » Tue Nov 12, 2024 9:16 pm

Can you share your store url/webmail server address.

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by mazman » Tue Nov 12, 2024 11:53 pm

nonnedelectari wrote:
Tue Nov 12, 2024 8:42 pm
also not in you spam folder?
I thought of that, too! But no, not there.

New member

Posts

Joined
Sun Apr 03, 2022 5:20 am

Post by mazman » Wed Nov 13, 2024 12:10 am

paulfeakins wrote:
Tue Nov 12, 2024 8:49 pm
mazman wrote:
Tue Nov 12, 2024 7:39 pm
I am still not getting order notification emails, nor any contact us emails.
Have you got all this set up properly?
https://www.antropy.co.uk/blog/emails-g ... kim-dmarc/
Wow, that's a lot of confusing stuff on the page at that link. I have no idea how to publish an SPF record in my DNS along with any of those other items. Even if I did, how could I specify the ip address of a customer?? Or am I not understanding that correctly.
Besides, it has been working for a number of years without any of that ever having been done, right?

New member

Posts

Joined
Sun Apr 03, 2022 5:20 am

Post by by mona » Wed Nov 13, 2024 12:14 am

mazman wrote:
Mon Nov 11, 2024 8:43 pm
I have searched. And tried all of the remedies that pertained to this situation but none have been successful. Thats why I posted.
1. What was the result from nonnedelectari test?
2. Have you reached out to your host? If everything has been working for a number of years - and you did not change anything - would it not be a reasonable probability your host did?
3. Please read these very carefully and let us know which ones you have tried.

viewtopic.php?t=87368&start=40
viewtopic.php?t=211516
viewtopic.php?t=231301
viewtopic.php?t=218464
viewtopic.php?t=218464
viewtopic.php?t=221172


mazman wrote:
Tue Nov 12, 2024 7:39 pm
I have no idea how to publish an SPF record in my DNS along with any of those other items.
If you have a half decent host they will be able to
1. Do it for you
2. Help you do it
3. Have step by step documentation specific for your host.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by mazman » Wed Nov 13, 2024 3:51 am

khnaz35 wrote:
Tue Nov 12, 2024 9:16 pm
Can you share your store url/webmail server address.
Store url is mazcrafters.com
Webmail server is smtp.dreamhost.com

New member

Posts

Joined
Sun Apr 03, 2022 5:20 am

Post by JNeuhoff » Wed Nov 13, 2024 6:03 am

There have been a number of changes for the system/library/mail/smtp.php between OC 3.0.3.8 and OC 3.0.4.0. Try the updated one from OC 3.0.4.0.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by mazman » Wed Nov 13, 2024 8:33 pm

I am now at least getting some error messages after trying all these options.
2024-11-13 6:45:05 - PHP Warning: Undefined array key "display_type" in /home/p*****3/mazcrafters.com/catalog/controller/extension/popupform.php on line 61
2024-11-13 6:45:05 - PHP Warning: Undefined array key "display_type" in /home/p*****3/mazcrafters.com/catalog/controller/extension/popupform.php on line 68
2024-11-13 6:45:05 - PHP Warning: Undefined array key "resetbutton" in /home/p*****3/mazcrafters.com/catalog/controller/extension/popupform.php on line 75
2024-11-13 6:45:05 - PHP Warning: Undefined array key "custome_style" in /home/p*****3/mazcrafters.com/catalog/controller/extension/popupform.php on line 77
2024-11-13 6:45:05 - PHP Warning: Undefined array key "form_id" in /home/p*****3/mazcrafters.com/catalog/controller/extension/popupform.php on line 78
2024-11-13 6:45:05 - PHP Warning: Undefined array key "title" in /home/p*****3/mazcrafters.com/catalog/controller/extension/popupform.php on line 79
2024-11-13 6:45:05 - PHP Warning: Undefined array key "title" in /home/p*****3/mazcrafters.com/catalog/controller/extension/popupform.php on line 80
2024-11-13 6:45:05 - PHP Warning: Undefined array key "form_id" in /home/p*****3/mazcrafters.com/catalog/controller/extension/popupform.php on line 110
2024-11-13 6:45:05 - PHP Warning: Undefined array key "form_id" in /home/p*****3/mazcrafters.com/catalog/controller/extension/popupform.php on line 150
2024-11-13 6:45:05 - PHP Warning: Undefined array key "captcha" in /home/p*****3/mazcrafters.com/catalog/controller/extension/popupform.php on line 184
2024-11-13 6:45:05 - PHP Warning: Undefined array key "captcha" in /home/p*****3/mazcrafters.com/catalog/controller/extension/popupform.php on line 186
This is the same version of this file that has been there for two years.
When I hit send, it acts like the info went through...goes to the success page (as it always has with the few exceptions of that fatal error).

New member

Posts

Joined
Sun Apr 03, 2022 5:20 am

Post by mazman » Wed Nov 13, 2024 8:37 pm

JNeuhoff wrote:
Wed Nov 13, 2024 6:03 am
There have been a number of changes for the system/library/mail/smtp.php between OC 3.0.3.8 and OC 3.0.4.0. Try the updated one from OC 3.0.4.0.
Thanks for the post. Uploaded that version but no difference.

New member

Posts

Joined
Sun Apr 03, 2022 5:20 am
Who is online

Users browsing this forum: No registered users and 31 guests