Only administrators with access to the server where Confluence is running can modify the Confluence email templates.
The information on this page does not apply to Confluence OnDemand.
Process to change the email templates
- Shut down your test instance of Confluence.
- In the Confluence web application folder, find the file
/confluence/WEB-INF/lib/confluence-2.x.jar
. - Make a copy of this file as a backup.
- Learn how to edit files within .jar archives.
- Within the jar file, find the
/templates/email
folder. Find the appropriate file(s) within that folder. - Edit the file with a text editor to make the required changes. The content is mostly HTML, but has some Velocity template variables in it. See Velocity Template Overview for more information about how these work.
- Again using the guide on editing files within .jar archives, either rejar the set of folders or drop the new files into the identical folder structure in the
WEB-INF/classes
directory. - Start Confluence up again and test your changes.
- Apply the changes to your production Confluence instance.
The same process can be applied to modify most of the templates in the Confluence web application. For velocity files that are not in a jar file, you need not shut down and restart Confluence. Be careful to test your changes before applying them to a live site. The templates contain code that is vital for Confluence to function, and it is easy to accidentally make a change that prevents use of your site.