Legacy Knowledge Base
Published Jun. 30, 2025

How to modify existing Email template for announcements

Written By

Sivakumar Perumal

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Is there any OOTB option to modify the announcements email template?

Environment

  • Liferay DXP 7.4

Resolution

  • The template for the subject and body of announcement emails contained in the files emailsubject.tmpl and emailbody.tmpl, as per the below property.
    #
    # Env: LIFERAY_ANNOUNCEMENTS_PERIOD_EMAIL_PERIOD_BODY
    # Env: LIFERAY_ANNOUNCEMENTS_PERIOD_EMAIL_PERIOD_SUBJECT
    #
    announcements.email.subject=com/liferay/portlet/announcements/dependencies/email_subject.tmpl
    announcements.email.body=com/liferay/portlet/announcements/dependencies/email_body.tmp
  • Create a folder dependencies under the tomcat directory <TOMCAT_HOME>/webapps/ROOT/WEB-INF/classes/dependencies then create a custom template files emailsubject.tmpl and emailbody.tmpl inside the folder
  • Set the following properties in portal-ext.properties
    announcements.email.subject=dependencies/emailsubject.tmpl 
    announcements.email.body=dependencies/emailbody.tmpl
    Note: Requires a restart of the server.
Did this article resolve your issue ?

Legacy Knowledge Base