You can modify the notification emails that the repository
sends when assets are updated.
Procedure
- In the web client, click Administration.
- In the Repository Administration sidebar, click Tools.
- In the Customize Emails section, click Download
Current Custom Email.
- Save the defaultEmails.jar file to
an accessible location for editing.
- Extract the defaultEmails.jar file.
- Open to the extract_location/com/ibm/ram/repostitory/mail folder.
- With a text editor, open the mailMessages_language_code.properties file. For example, to edit the English file, open the mailMessages_en.properties file.
Note: Use
the mailMessages.properties file that is not
language-specific as a backup file. Copy the content from the language
file into the generic file. If the language file cannot be found,
the mailMessages.properties file is used instead.
- Modify the values with the following restrictions.
- Do not change the names of the properties to the left of the
equal sign (=). For more information about property descriptions,
see the Table of available properties for email
messages.
- You can use HTML for the body of emails. However, not every
email client reads HTML or renders HTML code as you might expect.
- Do not use HTML for subjects.
- Many of the strings use variables to add in information, such
as the name of the asset. Usually, these variables are written in
a numeric style, such as "{0}". These numeric variables change meaning
depending on which property they are used with. Check the default
template for the meaning of property-specific numeric variables.
- To insert dynamic information, such as the name or lifecycle
state of the asset, you can use several additional variables. For
a list of dynamic variables, see the Table of available variables for email
messages.
- Save the modified .properties file.
- With the edited defaultEmails folder, create an archive
file that has the .jar extension.
- Upload the modified defaultEmails.jar file
to the repository:
- In the web client, click Administration.
- Click Tools.
- In the Customize Emails section,
under "Upload customized email files,"click Browse,
then select the modified defaultEmails.jar file.
- Click Upload.
- Stop and then restart the application server or cell. After the application server starts again, the repository
uses the .properties files that you uploaded.
What to do next
To restore the default email messages template, in the web
client click . In the
Customize
Emails section, click
Restore the default email.