フォーラム

ホーム » Liferay Portal » English » 2. Using Liferay » General

構造的に表示 平面上に表示 ツリー上に表示
スレッド数 [ 前へ | 次へ ]
toggle
Michael Harper
Calendar Event Alerts to Multiple Emails
2011/08/24 12:19
答え

Michael Harper

ランク: Junior Member

投稿数: 56

参加年月日: 2011/08/10

最近の投稿

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
RE: Calendar Event Alerts to Multiple Emails
2011/08/29 7:54
答え

Michael Harper

ランク: Junior Member

投稿数: 56

参加年月日: 2011/08/10

最近の投稿

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

1<aui:field-wrapper cssClass="reminders" label="">
2                    <aui:input checked="<%= remindBy == CalEventConstants.REMIND_BY_NONE %>" label="do-not-send-a-reminder" name="remindBy" type="radio" value="<%= CalEventConstants.REMIND_BY_NONE %>" />
3                    <aui:input checked="<%= remindBy == CalEventConstants.REMIND_BY_EMAIL %>" label='<%= LanguageUtil.get(pageContext, "email-address") + " (" + user.getEmailAddress() + ")" %>' name="remindBy" type="radio" value="<%= CalEventConstants.REMIND_BY_EMAIL %>" />
4                    <aui:input checked="<%= remindBy == CalEventConstants.REMIND_BY_SMS %>" label='<%= LanguageUtil.get(pageContext, "sms") + (Validator.isNotNull(contact.getSmsSn()) ? " (" + contact.getSmsSn() + ")" : "") %>' name="remindBy" type="radio" value="<%= CalEventConstants.REMIND_BY_SMS %>" />
5                </aui:field-wrapper>
Guru k
RE: Calendar Event Alerts to Multiple Emails
2012/03/04 21:50
答え

Guru k

ランク: Junior Member

投稿数: 64

参加年月日: 2012/02/07

最近の投稿

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
RE: Calendar Event Alerts to Multiple Emails
2012/07/09 22:17
答え

Suresh Rangachari

ランク: New Member

投稿数: 14

参加年月日: 2011/12/14

最近の投稿

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