I'm working on some improvements inside PayPal extension for Magento and I have set to module send an email to customer after order status is changed. I have used the code below for each different status within PayPal order controller:
$order->sendOrderUpdateEmail();
$order->setEmailSent(true);
I would like to send custom email templates for each status, for example, when order is cancelled, the customer gets this message: "Hi dear customer, we are informing you that your order #123456 has been cancelled for some reason...". How can I use the functions above setting Magento to send an email calling the custom template I have created for that specific case? Is it possible?