Order notification for admins not received

  • Posts: 45
  • Thank you received: 3
4 years 3 months ago #323243

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.19

My client told me the admin email notification after an order has been placed is missing.
I tested joomla's email via global config and it sends test emails successfully.
I also added my own email as receiver in the hikashop configuration and did a test order. I didn't receive any email as I expected.
I then did a spam test (mail-tester.com) and got a rating of 5.2/10. On of the two major points was this:

"Freemail in Reply-To, but not From"

I then saw that hikashop adds the customer's email address in the reply-to of the mail header, and this seems to cause spam filters to react. Is there any way I can deactivate that, at least to test again?

Kind regards,
Terry

Last edit: 4 years 2 months ago by bytekultur.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 3 months ago #323253

Hi,

I would first recommend you to check that you see the email in the menu Customers>Emails history.
If you don't, then it's not a spam issue. It's something else, like the orders not being confirmed automatically by the payment gateway, or the email being disabled in System>Emails.
If you do, then it's indeed that the email is discarded at some point for some reason.
Normally, the reason is logged in the log of the email server of your hosting.
So in that case, I would recommend to contact your hosting support with a copy of the details of an email from the email history which wasn't received so that they can check their email server log and tell you what was the problem.
It will be easier to fix the problem ounce you know what the problem is.
Now to answer you, the from is automatically added to the email with the settings in the Emails section of the HikaShop configuration. So I would recommend you to check there.

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 3
4 years 3 months ago #323256

Thank you for your quick answer.
Email history: they are all there
Spam reason: as I said I did a spam test, so one admin notification email went to email-tester.com who then gave me a rating and reasons for it. As I wrote, that reason is the reply-to, not the from.
Let me explain:

1. test customer (me) orders with a GMail account
2. admin (mail-tester) recieves an email with
from: This email address is being protected from spambots. You need JavaScript enabled to view it.
reply-to: This email address is being protected from spambots. You need JavaScript enabled to view it., This email address is being protected from spambots. You need JavaScript enabled to view it.

The result is this comment: Freemail in Reply-To, but not From
It's a good choice to use the system email in the from (and not the customer's one) because its more reliable and less prone to end up as spam. But the reply-to I never heard it's a problem. So I need to test if this would improve it at least.

So my question was: where can the Reply-to be deactivated or changed?

Last edit: 4 years 3 months ago by bytekultur.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 3 months ago #323258

Hi,

The reply-to for the "order admin notification" email is added by the code:

if(!empty($user_email)) {
					if(HIKASHOP_J30) {
						$mailClass->mailer->addReplyTo($user_email, $user_name);
					} else {
						$mailClass->mailer->addReplyTo(array($user_email, $user_name));
					}
				}
in the file administrator/components/com_hikashop/classes/order.php

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 3
4 years 2 months ago #323390

Thank you, I have checked this and if I don't add the reply-to, the spam test rating is 10/10, and all emails are received.
I am guessing that this was the issue, but I can't solve it without both a core hack and removal of a practical function.

FREEMAIL_FORGED_REPLYTO seems to cause all emails from a freemail sender like GMail or Yahoo etc. to fail being delivered. I haven't experienced this before, and I know, it's not necessarily a bug or code design issue, but I'd still ask you: how would you tackle this if configuring the spamfilter is not an option?

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 2 months ago #323398

Hi,

You say that the issue is for the emails received by the admin.
So that means the emails are filtered by the spam filter of the receiver email address and in that case it is This email address is being protected from spambots. You need JavaScript enabled to view it.
So the question is how do you handle the emails for that email address ?
Is that a mailbox provided by your hosting ? Or is it self hosted by your own mail software ? Or something else ?
If it's self-hosted, then you can change the configuration of your server's mail software to allow for that.
If it's provided by your hosting, then you should check with your hosting support what can be done.
If it's something else, like a gmail mailbox, maybe you can setup some rules to white list the emails coming from your server.

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 8
  • Hikashop Business
3 months 6 hours ago #362806

I seem to be having this exact issue too.
J4.4.5 and hikashop 5.1.0

Using a noreply@ mail as send from
Admin notifications going to gmail account.
Customer receives order emails , admin does not (not in spam either).

Event Booking system on the same site using the same notification settings works perfectly.
Why is hikashop not sending the admin notifications? Emails are showing in the log
Customers > Email History
This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.
A new order has been created on your website
2024-08-18 12:31
Order administrator notification
143

Resending the email does nothing although email sent message appears

_dmarc and spf records are in the zone.

Last edit: 3 months 6 hours ago by huwhuw.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 months 4 weeks ago #362809

Hi,

If the email is in the email history of HikaShop, then HikaShop did send the email to the email server of your hosting and the email server of your hosting accepted it.
HikaShop cannot know what happens next.
It's then the email server of the hosting which processes the email and sends it to the receiver email server. If that fails, the reason is logged in the log file of the email server of the hosting.
So, in short, if you see an email in the email history of HikaShop and it is not delivered, you need to ask your hosting support why. They should be able to tell you by checking the log of the email server.

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 8
  • Hikashop Business
2 months 4 weeks ago #362847

Ok thanks
We are talking about not receiving the admin confirmation mail to Gmail here so I don’t believe there is any kind of log or support for gmail?
Client has confirmed it is not in spam

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 months 4 weeks ago #362848

Hi,

In the Joomla configuration, you have email settings. These defines how your website send the emails. In the "Mailer" setting, you have selected how your website (including HikaShop) sends the emails: i.imgur.com/cmsQN6l.png
If you select "sendmail" or "PHP mail", which is the case in 99% of the cases, the emails sent by your website (all of them, including all the ones sent by HikaShop, and including the ones sent to gmail) go through your hosting mail server. And it's your hosting mail server which then sends them to the recipient email server ( which can be gmail, hotmail, etc). I'm not telling you to contact the recipient email server ( gmail ). I'm telling you to contact the sender email server ( the hosting provider ).
Both Gmail and the hosting provider email servers have logs about the emails being sent and received, but you'll more likely get an answer from your hosting, since you're paying them for that service (which is included with the hosting of the website).

Please Log in or Create an account to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum