How to convert an xml template for the power mail unit
From Wiki
Power mail units are semiautomatically converted by the Web project import feature. If fact, if your project contains power mail units using xml templates, these are automatically converted into the new template format, which is a .mt file. In order to complete the conversion of the unit you have to manually add to the mail unit the placeholders listed in the template.
If your project folder contains other xml templates, which are not used in the project but you think that they can be useful in the future, you have to manually convert them in the new format. Here is a simple guideline to perform this operation.
- Create a new file with the .mt extension in the Web project under the directory "/WebContent/WEB-INF/descr"
- Copy all the content from the original xml file
- Delete the <?xml version="1.0" encoding="utf-8" ?> line at the beginning of the file
- Delete all the <mail>, <mail-subject>, <mail-body> tags
- Replace all the <WRTEXT name='placeholder'/> and the <WRFRAGMENT name='placeholder'/> with the code $$placeholder$$
Here is an example of conversion. On the left there is the old xml template, and on the right the new .mt template

