There are two methods to achieve it...
1. You can change the e mail notification by modifying the template at following breadcrumb :
This will change the default template in the following path:
This is the easiest way to achieve. However, there is one more way which is more recommended.
2. In EXT environment, you have freedom of writing your own template and set it in portal-ext.properties file. The default one can be seen by following the mentioned path. However same variable(string literals) can be used in custom templates too.
AN IMPORTANT NOTE:
1. You can change the e mail notification by modifying the template at following breadcrumb :
Control Panel >> Settings >> E-mail Notification
This will change the default template in the following path:
com/liferay/portlet/admin/dependencies/
This is the easiest way to achieve. However, there is one more way which is more recommended.
2. In EXT environment, you have freedom of writing your own template and set it in portal-ext.properties file. The default one can be seen by following the mentioned path. However same variable(string literals) can be used in custom templates too.
#
# Configure email notification settings.
#
admin.email.from.name=Apoorva Prakash
admin.email.from.address=apoorvashubhi@gmail.com
admin.email.user.added.enabled=true
admin.email.user.added.subject=com/liferay/portlet/admin/dependencies/CUSTOM_email_user_added_subject.tmpl
admin.email.user.added.body=com/liferay/portlet/admin/dependencies/CUSTOM_email_user_added_body.tmpl
admin.email.password.sent.enabled=true
admin.email.password.sent.subject=com/liferay/portlet/admin/dependencies/CUSTOM_email_password_sent_subject.tmpl
admin.email.password.sent.body=com/liferay/portlet/admin/dependencies/CUSTOMemail_password_sent_body.tmpl
In the above mentioned code, I have created a new template, stored in the same path with the different name.
Available Values:
In this template few string tokens are available, which can be used.
New string tokens can be create by overriding "liferay-portal-src-5.2.3\portal-impl\src\com\liferay\portal\service\impl\UserLocalServiceImpl.java" class.
AN IMPORTANT NOTE:
When you start the the server first time, it will pickup the custom template you've created. As soon as you make some modification from Rich Text Editor window, and save it, the modified template is saved in the database in portletpreferences table. Next time, the template is picked up from the database instead custom template. Basically, liferay looks for template from the database first, if it exists there then populates the template from database, else reads the path from portal-ext.properties and loads the custom template. Database is always given priority over properties file.