How to change message sent by email when making a comment in Asset Publisher

Issue

  • When making a comment on some Web Content present in an Asset Publisher, with the Enable Email Subscription setting enabled on its page, a commented notification is sent by email to users subscribed to that Asset Publisher
  • However, the message that is sent by default is a message in English and I would like to know if there is any way to customize this message to a preferred language

Environment

  • Portal 6.2

Resolution

  • There is no native way to make this change via the UI.

  • However, there is a possible workaround to be done to update the content of this sent message. For this, follow these steps:

    1. Update locally the attached files with the changes you want to persist in the new message.

    2. In your bundle, add the attached files in the following directory: tomcat-7.0.62/webapps/ROOT/WEB-INF/classes/com/liferay/portlet/messageboards/dependencies
      If it does not exist, this directory can be created respecting this hierarchy of folders.

    3. Add the following parameters in your ext.properties:
      • discussion.email.body=com/liferay/portlet/messageboards/dependencies/discussion_email_body.tmpl
      • discussion.email.subject=com/liferay/portlet/messageboards/dependencies/discussion_email_subject.tmpl
    4. Restart your portal

Additional Information

 

 

这篇文章有帮助吗?
0 人中有 0 人觉得有帮助