Legacy Knowledge Base
公開されました Jun. 30, 2025

お知らせ用の既存の電子メール テンプレートを変更する方法

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.

問題

  • お知らせメール テンプレートを変更するための OOTB オプションはありますか?

Environment

  • Liferay DXP 7.4

解決策

  • 以下のプロパティに従って、ファイル emailsubject.tmpl および emailbody.tmplに含まれるお知らせメールの件名と本文のテンプレート。
    #
    # 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
  • tomcat ディレクトリの下にフォルダー dependencies を作成します <TOMCAT_HOME>/webapps/ROOT/WEB-INF/classes/dependencies 次に、カスタム テンプレート ファイルを作成します emailsubject.tmpl および emailbody.tmpl フォルダ内
  • portal-ext.properties で次のプロパティを設定します
    announcements.email.subject=dependencies/emailsubject.tmpl 
    announcements.email.body=dependencies/emailbody.tmpl
    注: サーバーの再起動が必要です。
Did this article resolve your issue ?

Legacy Knowledge Base