You can use an external script.
There are some similar questions here, with more details:
How to add Custom email alert content
You can use an external script.
There are some similar questions here, with more details:
How to add Custom email alert content