Foren

Calendar Event Alerts to Multiple Emails

Michael Harper, geändert vor 12 Jahren.

Calendar Event Alerts to Multiple Emails

Junior Member Beiträge: 56 Beitrittsdatum: 10.08.11 Neueste Beiträge
I was wondering how to change the Calendar portlet to allow a user to set a custom email, or emails that they want the alert sent to, or if there was a way to just select the users from the directory of who should receive the alert email?

Thanks in advance for any help!

Mike
Michael Harper, geändert vor 12 Jahren.

RE: Calendar Event Alerts to Multiple Emails

Junior Member Beiträge: 56 Beitrittsdatum: 10.08.11 Neueste Beiträge
I found where to edit that part of the portlet in the edit.event.jsp file. The problem I'm having now is I'm not sure how to add in the "Other" radio with the text box to put your own email/emails that you would like the reminder sent to. I wouldn't think I would have to edit in anything to the CalEventConstants. Has anyone else done something like this that could shed some light on it for me?

Thanks!

Mike

<aui:field-wrapper cssclass="reminders" label="">
					<aui:input checked="<%= remindBy == CalEventConstants.REMIND_BY_NONE %>" label="do-not-send-a-reminder" name="remindBy" type="radio" value="<%= CalEventConstants.REMIND_BY_NONE %>" />
					<aui:input checked="<%= remindBy == CalEventConstants.REMIND_BY_EMAIL %>" label="<%= LanguageUtil.get(pageContext, &quot;email-address&quot;) + &quot; (&quot; + user.getEmailAddress() + &quot;)&quot; %>" name="remindBy" type="radio" value="<%= CalEventConstants.REMIND_BY_EMAIL %>" />
					<aui:input checked="<%= remindBy == CalEventConstants.REMIND_BY_SMS %>" label="<%= LanguageUtil.get(pageContext, &quot;sms&quot;) + (Validator.isNotNull(contact.getSmsSn()) ? &quot; (&quot; + contact.getSmsSn() + &quot;)&quot; : &quot;&quot;) %>" name="remindBy" type="radio" value="<%= CalEventConstants.REMIND_BY_SMS %>" />
				</aui:field-wrapper>
Juan Carlos Toledo Baute, geändert vor 10 Jahren.

RE: Calendar Event Alerts to Multiple Emails

Junior Member Beiträge: 50 Beitrittsdatum: 30.03.11 Neueste Beiträge
Hi

I intend to send the reminder to more of an email account, read from additional user emails. I think it's in the shipping module which must intervene to add the new account.
Someone can guide me which module or event should extend. I have not much experience in programming on Liferay, an example I could use so well ..

thanks
Guru k, geändert vor 12 Jahren.

RE: Calendar Event Alerts to Multiple Emails

Junior Member Beiträge: 64 Beitrittsdatum: 08.02.12 Neueste Beiträge
Hi Mike,

Have you succeeded in sending email notification to multiple users from calendar portlet.

Can you tell me how to achieve it as i am having the same requirement.

Thanks
Guru
Suresh Rangachari, geändert vor 11 Jahren.

RE: Calendar Event Alerts to Multiple Emails

New Member Beiträge: 14 Beitrittsdatum: 14.12.11 Neueste Beiträge
Hi Guru,


You can create a Listener for Calendar Event like OnAfterCreate,OrRemove..etc ... suppose if you have a organization and if you want to send out the event notification for the members (all the members/ only selected). you can pull them from the liferay implementation util classes (refer OrganizationLocalServiceUtil )and you can loop to an to[] internetAddress array and use the Mailservice or MailEngine class for sending out notification. Any help get back to me..


Thanks