Web services looks in the file mailer.properties to find the location of the email template.
Mailer.properties is kept in the same folder for the installed apps as config.properties. An example of a path to find it is C:\IBSAPP\AppServer85\profiles\BKDEVR77EARJ\installedApps\AUPSY499Node13Cell\IBSECommerc e_20150624.ear\config
The simplest place to store the templates is C:/emailTemplates. This means the ear file can be updated without the loss of templates. Mailer.properties should be changed accordingly.
The email template library containing a sample template is in a IBSECommerceJava.jar An example of a path to find it is
C:\IBSAPP\AppServer85\profiles\BKDEVR77EARJ\installedApps\AUPSY499Node13Cell\IBSECommerc e_20150624.ear\lib
Open the jar file with WinRar or one of its alternatives eg WINZIP copy the templates folder to the location specified in Mailer.properties.
Also included in the templates folder are 4 files XHTML*.*. These need to be copied to the profiles folder for the application server. This step is covered in the in the Ear file Configuration and Deployment Guide document.
An example of this path is
C:\IBSAPP\AppServer85\profiles.
Modify the template as required.
If sites are specified in the control file then a valid site must be specified for recoverPassword.
When recover password looks for the template it will search for a template prefixed with the site code. If the site code is AA there must be a template AAemailPasswordTemplate.xhtml
Once recover password has generated the email based on the template it uses the mailing router defined in websphere.
Checklist
- XHTML*.* files in the profile folder
- Email templates in folder C:\EmailTemplates
- An email template for each site
- Mailer.Properties specifies location of \EmailTemplates Mail router specified in websphere
