Thanks for your reply.
No. I don't have any hooks using logadminactivity function.
It seems like the failed reminder attempt also deleted the invoice that the reminder was meant for.
I don't know what else to do. Probably will have to reconfigure the SMTP portion. Will have to stop processing my invoices on WHMCS if it is randomly missing.
I am getting this error even after uploading the hotfix here
This seems to occur only for reminder email sent during automated task.
Anybody facing the same issue? Any solution?