I have a problem regarding magento's sending of emails, I've edited the onepagecontroller.php that after every successful checkout, it will automatically send the order and invoice email of the last order ID ( which is supposed to be the purchased items )
But I don't know why sometimes it sends both emails, then sometimes it doesn't send these 2 emails at all. in my mageto configuration the sales emails are set to yes as well ( all emails order/invoice/shipping )
Is there a way to debug this ? There are no error logs being logged every after unsuccesful email, but if magento did send said emails, maillog in var/log is updated with the sent email.
any Ideas on what may cause the email sending error ?