Changing mail template content by id programmatically (Magento 1)

To change the content of a Magento mail template by its id, use the following code: