Hi,
What do you mean by "Sometimes it works, sometimes it doesn't" ?
Why do you think that sometimes the notification email "doesn't work" ?
You didn't get notified as the admin ? Or some customers told you they didn't receive the email ? Something else ?
The first thing to do is to look in the menu Customers>Emails history. There, you can see all the emails sent by HikaShop.
If you see the missing emails in there, it means that HikaShop sent the emails but they likely ended up in the spam folder of the receiver's inbox, or their email server just refused the email after flagging it as spam.
In that case, you want to check your emails with
www.mail-tester.com/
If you don't see the emails in there, it means that HikaShop thinks it should not send the notification. In that case, which email are you talking about ? You can see the list of the emails in the System>Emails menu. Is the email notification published in there ?
Supposing that we're talking about the "order status notification" email, sent to the user, it will only be sent after the payment is done and the payment plugin receives the payment notification request from the payment gateway and processes it successfully, and then changes the status of the order to "confirmed". Was the order status of the orders for which the email "didn"t work" changed to "confirmed" ? What payment plugin(s) are you using ? Does it happen regardless of the payment plugin used or it's only with one payment plugin ?