Forums

Home » Liferay Social Office

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Pravin Pawar
Email Notifications for Activities
April 3, 2010 3:10 AM
Answer

Pravin Pawar

Rank: Junior Member

Posts: 62

Join Date: November 17, 2009

Recent Posts

We are using Social office for our internal projects. In Activities portlets all the recent updates are shown but I think we can't get email notifications for that. Examples like document uploaded, forum & wiki post etc. So is it possible for us to implement this functionality or it's already in-build.

Please let us know as early as possible.

Thanks,
Zankar Shah
RE: Email Notifications for Activities
April 3, 2010 3:45 AM
Answer

Zankar Shah

Rank: Regular Member

Posts: 105

Join Date: October 3, 2007

Recent Posts

For some of them its already built. Like for Wiki, if you have subscribed the wiki then any update on wiki will send you notification. Then any post on Wall send email notification. Membership workflow to restricted community sends notification.
Corné Aussems
RE: Email Notifications for Activities
April 3, 2010 4:08 AM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1312

Join Date: October 3, 2006

Recent Posts

AFAIK it's not buildin, as the activity porltet aggregates the data on viewing the portlet and i think an e-mailnotification on activities on your friends on any activity would be a mayor change in all portlets.

I think users would get crazy on the amount of e-mails they would receive;
One could connoct something based on a scheduled run and aggregate the same info based on the activities portlet and send 1 email per day or so;
Pravin Pawar
RE: Email Notifications for Activities
April 3, 2010 7:31 AM
Answer

Pravin Pawar

Rank: Junior Member

Posts: 62

Join Date: November 17, 2009

Recent Posts

Hi Zankar & Corné thanks for a quick replay.

I have manage to write a Notification-Hook for the SocialActivity Model. I have created
SocailActivityListener class & in this class onAfterCreate(Object arg0) method gives us SocialActivity object. With this object I am able to access all the details like groupId, userId, classname etc.

Now the problem is that how should I create the message body text for email notification which is similar to Activities portlet.

e.g. Blogs
Pravin wrote a new blog entry, How a SaaS Model Is Effective for Design, Develop and Market.
1:36 PM

I am unable to get the code for creating such messages according to the type of activity.

In activities portlet view.jsp following code is written for showing the activities.

1<liferay-ui:social-activities
2    activities="<%= activities %>"
3    feedEnabled="<%= true %>"
4    feedTitle='<%= LanguageUtil.format(pageContext, "subscribe-to-these-activities", user.getFirstName()) %>'
5    feedLink="<%= rssURL.toString() %>"
6    feedLinkMessage='<%= LanguageUtil.format(pageContext, "subscribe-to-these-activities", user.getFirstName()) %>'
7/>
Enrique Valdes Lacasa
RE: Email Notifications for Activities
October 14, 2014 2:44 PM
Answer

Enrique Valdes Lacasa

Rank: Junior Member

Posts: 69

Join Date: July 29, 2014

Recent Posts

Just in case that this could help, there is a portlet called "Activity Mailer" in the Liferay Marketplace which allows sending notifications from the "Activities" portlet via email. Basically, using the portlet in a specific site, you can select which recent activity to notify about, and then select the users of the site to whom the notifications will be sent. It is free, you can check it out through the following link: https://www.liferay.com/marketplace/-/mp/application/30744596. It is available for: Liferay Portal 6.1 CE GA2+ and Liferay Portal 6.1 EE GA2+.

This could be an interesting solution that at the same time would avoid overloading email inboxes with notifications as Corné Aussems mentioned.