I have read through the threat but can't find the fix to fix the issue of emails not being sent to customers when you update the status or add comments.

How do I go about fixing the code?