Problem with Email Template Customization in DSpace 7.4

145 views
Skip to first unread message

Marissa Smile

unread,
Jan 29, 2024, 3:46:03 PM1/29/24
to DSpace Community
Hello DSpace Community,

I'm currently facing an issue related to email template customization in DSpace 7.4, and I'm seeking some guidance or insights.

Issue Details:
I have followed the instructions in the DSpace documentation to customize the email templates by making changes in the dspace/config/emails directory. Despite making the changes, the original email text is still being displayed when the email is sent, and the customization does not seem to take effect.

For example i want to change the wording on the reset password email:  To change the password for your DSpace account, please click the link
below:
I Modified email templates in dspace/config/emails/ change_password.
Ensured that the changes were saved successfully.
Restarted the DSpace server after making modifications.
but still i get the original text.

I would appreciate any guidance or insights from the community on how to resolve this issue. 
Thank you in advance for your help!









DSpace Community

unread,
Feb 9, 2024, 11:06:12 AM2/9/24
to DSpace Community
Hi,

If you are still encountering this issue, my best guess is that you may have updated the files in the wrong location?

You should do one of two things:
1. Either change these files in the [dspace.dir]/config/emails/ folder, where "[dspace.dir]" is the install directory specified by the "dspace.dir" setting in your local.cfg/dspace.cfg
2. OR, you can change these in your DSpace source code ([src]/dspace/config/emails/), but then you MUST rebuild the backend via:  mvn clean package ; ant update.  That rebuild will ensure that these updated files get copied into the [dspace.dir]/config/emails/ folder.

Regardless of which approach you choose, you are correct that you must restart Tomcat to ensure the new version is loaded.

Tim 
Reply all
Reply to author
Forward
0 new messages