Order notification status

Hi,

I use third party software to change order statuses through MySQL. The problem is that this way the customer doesn’t get the notification e-mail.



Does anyone know, which function should I call to send the message to the customer?



Thanks!