I would like know if it is possible to override a plugin's Mail Templates without touching the plugin.
For example, when a new RainLab.User is invited, it sends an email using the rainlab.user::mail.invite template. Ideally, I would like to have a Mail Template file in my own plugin's views/mail directory that gets used instead.
I am aware I can simply edit Mail Templates in the backend as they are stored in the database, but I have 2 reasons not to do this:
- It will create discrepencies in the Mail Templates across multiple environments, I only want to manage them in the filesystem.
- I want to be able to use the RainLab.Translate plugin's feature that allows me to have multi-lingual Mail Templates by providing the Mail Template's filename with a language suffix.