Foren

Calendar portlet email to entire community

thumbnail
Wayne Christian, geändert vor 16 Jahren.

Calendar portlet email to entire community

Regular Member Beiträge: 104 Beitrittsdatum: 12.06.07 Neueste Beiträge
Is there a way to get the calendar portlet to email to an entire community, or a group (like a mailing list, but members of a liferay user group would work as well)???
thumbnail
Jorge Ferrer, geändert vor 16 Jahren.

RE: Calendar portlet email to entire community

Liferay Legend Beiträge: 2871 Beitrittsdatum: 31.08.06 Neueste Beiträge
Hi Wayne,

No, I'm afraid does not possible yet.
chits. akhani, geändert vor 15 Jahren.

RE: Calendar portlet email to entire community

Regular Member Beiträge: 111 Beitrittsdatum: 13.03.08 Neueste Beiträge
hi, if u want to send reminder for particular event to all existing users, or u want to send reminder to selected users then it's possible .
for that u have to modify 4 to 5 files of calendar portlet.

If u want any details then just message me.
Becoz i did it. i mean to send reminder to all active or some of them which i select for particular event.
thumbnail
Eric Lawrence, geändert vor 13 Jahren.

RE: Calendar portlet email to entire community

New Member Beiträge: 6 Beitrittsdatum: 01.06.08 Neueste Beiträge
I am interested in learning how you did this. Can you contact me. eric.lawrence@vennware.com

Thanks
Ivano Masiero, geändert vor 13 Jahren.

RE: Calendar portlet email to entire community

New Member Beiträge: 15 Beitrittsdatum: 07.07.10 Neueste Beiträge
Hi, I'm interested too, could you please contact me at: masieroi at dei dot unipd dot it, thanks in advance!
thumbnail
Arne Leeman, geändert vor 12 Jahren.

RE: Calendar portlet email to entire community

Junior Member Beiträge: 29 Beitrittsdatum: 24.02.11 Neueste Beiträge
Hi, this is what I was looking for as well.

Will somebody share the coding details with me?

arnel at planet dot nl...

Thanks,
Arne
thumbnail
Felix J Christy, geändert vor 12 Jahren.

RE: Calendar portlet email to entire community

Regular Member Beiträge: 111 Beitrittsdatum: 26.08.09 Neueste Beiträge
Hi,

To ahieve this, extend the class CalEventLocalServiceImpl and create the new one. Inside this class, there is a method remindUser().

In that method, take the group users from

List<User> users = UserLocalServiceUtil.getGroupUsers(ownerId);

and then, do a loop

for (User groupUser : users) {
toName = groupUser.getFullName();
toAddress = groupUser.getEmailAddress();
InternetAddress to = new InternetAddress(toAddress,toName);
MailMessage message = new MailMessage(from, to,subject, body, true);
MailServiceUtil.sendEmail(message);

}

Thanks,
Felix
thumbnail
Arne Leeman, geändert vor 12 Jahren.

RE: Calendar portlet email to entire community

Junior Member Beiträge: 29 Beitrittsdatum: 24.02.11 Neueste Beiträge
Hi Felix,

Thanks for your swift reply.
Implementation should be straightforward...

Thanks,
Arne.
Juni Elisabeth, geändert vor 11 Jahren.

RE: Calendar portlet email to entire community

New Member Beiträge: 2 Beitrittsdatum: 25.07.12 Neueste Beiträge
Hai...

Will somebody share details explain about this, please..?

i'm using Liferay 6.1

Thanks,
Chintan Akhani, geändert vor 11 Jahren.

RE: Calendar portlet email to entire community

Regular Member Beiträge: 111 Beitrittsdatum: 13.03.08 Neueste Beiträge
In Calendar portlet, we have a notification feature available OOTB, which sends a reminder to the owner of the event at selected time interval.

But if you want to send a notification to entire community ( in Liferay 6.1 it is 'Site') than code change is required. So you have to modify the remidUser() method of CalEventLocalServiceImpl.java.

You have to do changes mentioned by Felix, apart from that no other changes are required.

Thanks,
Chintan
thumbnail
Santiago Perez, geändert vor 11 Jahren.

RE: Calendar portlet email to entire community

Junior Member Beiträge: 53 Beitrittsdatum: 23.03.12 Neueste Beiträge
Hi everyone,
I'm using liferay 6.1 and I'm interested in this functionality but taking into account that an event could be private. In that case, only the reminder for the owner has to be generated.

My question is how can I distinguish between a private event and a group's event? The field "groupId" in CalEvent table is always filled.

Thanks, Santiago
Chintan Akhani, geändert vor 11 Jahren.

RE: Calendar portlet email to entire community

Regular Member Beiträge: 111 Beitrittsdatum: 13.03.08 Neueste Beiträge
Can you please provide more details of public event vs private event, I mean how do you distinguish both type of events from each other?
thumbnail
Gabriel Leon Leyva, geändert vor 10 Jahren.

RE: Calendar portlet email to entire community

Regular Member Beiträge: 243 Beitrittsdatum: 20.06.09 Neueste Beiträge
How can we implement the change in liferay code (which file??) in order to choose to who send the reminder (group of persons, only community or all site.
Thanks in advance
Chintan Akhani, geändert vor 10 Jahren.

RE: Calendar portlet email to entire community

Regular Member Beiträge: 111 Beitrittsdatum: 13.03.08 Neueste Beiträge
CalEventLocalServiceImpl.java, you can create an ext for this.