Send email after order status change

I have payment module and i need to receive email after order status change (in verify function). Is there a simple solution for this?

$order = new ctrl_order('load', $order_from_db['id']);
$order->data['order_status_id'] = '2';
$order->data['payment_transaction_id'] = $transaction['id'];
           
$order->save();

// Here i want to send email to settings::get('email_order_copy') about product status change

header("HTTP/1.1 200 OK");
die('OK');
tim

Just simply call the command:

function::email_send(
settings::get('store_email'),
settings::get('email_order_copy'),
'Status Change',
'A status has been changed'
);

Ezt a témát a hosszú inaktivitás miatt bezártuk. A hozzászólás nem lehetséges.
View code on GitHub