Page 1 of 1

1.5.6 not receiving order email

Posted: Thu Apr 16, 2015 12:46 am
by ChrisEvans
Hello,

I seem to have developed an issue where neither myself or the customer receives an email when they make an order. I receive all other emails ie contact, updated status etc.

I have read through all the related topics on here and tried all the various recommendations but nothing seems to fix the fault. I have been speaking with my hosting provider (34sp) over the last few days and it all seems fine there, the last thing they recommended was to use SMTP on port 587, but this doesn't fix the fault either and all the working emails get seen as spam.

I think it all stems back to when I have changed my theme, but at the same time upgraded opencart from 1.5.4 to 1.5.6.4, I had a few problems and somehow ended up using 1.5.6 so possibly have screwed up the database or something.

Basically I'm unsure what to do next, should I try upgrading opencart?

Many thanks for reading!

Re: 1.5.6 not receiving order email

Posted: Fri Apr 17, 2015 3:35 am
by IP_CAM
Read here about, I just found out myself, there is a new one available...
http://forum.opencart.com/viewtopic.php ... ilit=+spam
or Search Google for this:
"Mails handled as SPAM in 1.5.6.1" site:forum.opencart.com

Good Luck
Ernie
bigmax.ch/shop/
PS. DO NOT TELL real SMTP Port Numbers on the Open...

Re: 1.5.6 not receiving order email

Posted: Fri Apr 17, 2015 4:40 am
by ChrisEvans
IP_CAM wrote:Read here about, I just found out myself, there is a new one available...
http://forum.opencart.com/viewtopic.php ... ilit=+spam
or Search Google for this:
"Mails handled as SPAM in 1.5.6.1" site:forum.opencart.com

Good Luck
Ernie
bigmax.ch/shop/
PS. DO NOT TELL real SMTP Port Numbers on the Open...
Thanks IP_CAM but I have seen that method in another post and have already tried it.

Re: 1.5.6 not receiving order email

Posted: Tue Apr 21, 2015 4:54 am
by ChrisEvans
Hello again,

I have not managed to resolve this problem yet.

Is anyone willing to take a look at this? I'm willing to pay.

Re: 1.5.6 not receiving order email

Posted: Tue Apr 21, 2015 5:04 am
by artcore
The function that sends this particular email is in catalog/model/checkout/order.php, the confirm function.
Maybe replace current file with a fresh one from an original 1.5.6.x
And check if you a vqmod changing this file, just thinking out loud. Also, are there any error logs?

Re: 1.5.6 not receiving order email

Posted: Tue Apr 21, 2015 5:36 am
by ChrisEvans
Hi @artcore, thanks for your reply.

I have uninstalled all my vqmods that had errors or wasn't using, leaving only a few that i have tested with them disabled. I have also used winmerge to compare my catalog/mode/checkout/order.php and its exactly the same.

Currently there are no errors showing.

Re: 1.5.6 not receiving order email

Posted: Tue Apr 21, 2015 5:58 am
by artcore
Do the same with template/mail/order.tpl to rule out that part as well. Your theme probably doesn't have it so check the default template.
As this is the only mail that doesn't get sent it's likely to be OC related, but to find it you need to test all the parts involved.
From the top of my head:
-catalog/model/checkout/order.php
-system/library/template.php
-system/library/mail.php
Admin settings, store mail and Mail tab, Mail function, -fyour@email.com - No other settings needed.

Re: 1.5.6 not receiving order email

Posted: Tue Apr 21, 2015 6:16 am
by ChrisEvans
artcore wrote:Do the same with template/mail/order.tpl to rule out that part as well. Your theme probably doesn't have it so check the default template.
As this is the only mail that doesn't get sent it's likely to be OC related, but to find it you need to test all the parts involved.
From the top of my head:
-catalog/model/checkout/order.php
-system/library/template.php
-system/library/mail.php
Admin settings, store mail and Mail tab, Mail function, -fyour@email.com - No other settings needed.
I have checked all them files and there are no differences.

Just backing my site up now as I'm tempted to upgrade to another version.

Re: 1.5.6 not receiving order email

Posted: Tue Apr 21, 2015 7:25 am
by IP_CAM
::) Then, good luck, it seems...! :-\
Ernie

Re: 1.5.6 not receiving order email

Posted: Tue Apr 21, 2015 2:49 pm
by artcore
I'm willing to do some hunting for you. If all fails, message me.

Re: 1.5.6 not receiving order email

Posted: Tue Apr 21, 2015 3:12 pm
by ChrisEvans
Thanks @artcore. I will try updating tonight and see how I get on. Will be in touch if all fails.

Re: 1.5.6 not receiving order email

Posted: Wed Apr 22, 2015 1:58 am
by artcore
By coincidence I had a similar problem today with our shops after upgrading a payment module. It seems the callback didn't tell OC the order was complete so no mails were sent.
Did you try to make an order with bank transfer as the payment option (no external API calls so should work flawlessly)

Re: 1.5.6 not receiving order email

Posted: Wed Apr 22, 2015 2:10 am
by ChrisEvans
I haven't tried bank transfer but have been trying with PayPal and free checkout

Re: 1.5.6 not receiving order email

Posted: Wed Apr 22, 2015 6:34 am
by ChrisEvans
Upgraded to 1.5.6.4 and all is now working :)