<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Email triggering to test user when Calendar Event is created</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119376701" />
  <subtitle>Email triggering to test user when Calendar Event is created</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119376701</id>
  <updated>2026-04-05T20:40:16Z</updated>
  <dc:date>2026-04-05T20:40:16Z</dc:date>
  <entry>
    <title>RE: Email triggering to test user when Calendar Event is created</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119477554" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119477554</id>
    <updated>2020-06-24T15:25:02Z</updated>
    <published>2020-06-24T15:25:02Z</published>
    <summary type="html">You could just delete that user account. You shouldn&amp;#39;t have it anyway - create your own administrator user, not one that any brute force attack would try to check for first. It&amp;#39;s shocking how many installations use this ancient default - and probably quite some with a nonsecure password.&lt;br /&gt;Figure out, why it&amp;#39;s sent to that user - e.g. because it&amp;#39;s the owner of the site where the calendar is positioned - that mail you might want to send (to a proper person).&lt;br /&gt;I&amp;#39;m not sure, but also: Isn&amp;#39;t &lt;a href="mailto:test@liferay.com"&gt;test@liferay.com&lt;/a&gt; blacklisted, so you won&amp;#39;t send out the email anyway? Or was this implemented later and comes in 7.3?&lt;br /&gt;But in general: Don&amp;#39;t create user accounts with mails that you don&amp;#39;t control.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2020-06-24T15:25:02Z</dc:date>
  </entry>
  <entry>
    <title>RE: Email triggering to test user when Calendar Event is created</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119477202" />
    <author>
      <name>Shiva Lingam K</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119477202</id>
    <updated>2020-06-24T13:37:10Z</updated>
    <published>2020-06-24T13:37:10Z</published>
    <summary type="html">&amp;lt;p&amp;gt;HI Dominik Marks,&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;p&amp;gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; Thanks for your answer, but if we make&amp;amp;nbsp; this as&amp;amp;nbsp; false (&amp;lt;strong&amp;gt;serviceContext.setAttribute(&amp;amp;quot;sendNotification&amp;amp;quot;, false&amp;lt;/strong&amp;gt;);&amp;amp;nbsp; ) it will disable the notifications to all users who are invited. But my requirement is not to allow email&amp;amp;nbsp; only to &amp;lt;strong&amp;gt;test@liferay&amp;amp;nbsp;.com&amp;lt;/strong&amp;gt;. Can anyone suggest how it will be done ?&amp;lt;/p&amp;gt;</summary>
    <dc:creator>Shiva Lingam K</dc:creator>
    <dc:date>2020-06-24T13:37:10Z</dc:date>
  </entry>
  <entry>
    <title>RE: Email triggering to test user when Calendar Event is created</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119380489" />
    <author>
      <name>Dominik Marks</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119380489</id>
    <updated>2020-06-12T13:46:23Z</updated>
    <published>2020-06-12T13:46:23Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;I would suggest to go for a ServiceWrapper. In a project for Liferay 7.0 I used the following code (should be adapted easily for Liferay 7.2).&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;@Component(
&amp;amp;nbsp; &amp;amp;nbsp; immediate = true,
&amp;amp;nbsp; &amp;amp;nbsp; service = ServiceWrapper.class
)
public class CalendarBookingLocalServiceOverride extends CalendarBookingLocalServiceWrapper {&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;public CalendarBookingLocalServiceOverride() {
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; super(null);
&amp;amp;nbsp; &amp;amp;nbsp; }&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;@Override
&amp;amp;nbsp; &amp;amp;nbsp; public CalendarBooking addCalendarBooking(
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; long userId, long calendarId, long[] childCalendarIds,
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; long parentCalendarBookingId, Map&amp;lt;locale, string&amp;gt; titleMap,
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; Map&amp;lt;locale, string&amp;gt; descriptionMap, String location, long startTime,
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; long endTime, boolean allDay, String recurrence, long firstReminder,
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; String firstReminderType, long secondReminder,
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; String secondReminderType, ServiceContext serviceContext) throws PortalException {&amp;lt;/locale,&amp;gt;&amp;lt;/locale,&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; serviceContext.setAttribute("sendNotification", false);
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;return super.addCalendarBooking(userId, calendarId, childCalendarIds, parentCalendarBookingId, titleMap, descriptionMap, location, startTime, endTime, allDay, recurrence, firstReminder, firstReminderType, secondReminder, secondReminderType, serviceContext);
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;}
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;
}&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Dominik Marks</dc:creator>
    <dc:date>2020-06-12T13:46:23Z</dc:date>
  </entry>
  <entry>
    <title>RE: Email triggering to test user when Calendar Event is created</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119378439" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119378439</id>
    <updated>2020-06-12T13:13:08Z</updated>
    <published>2020-06-12T13:13:08Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Shiva Lingam K:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;Hello everyone,                             I need a solution to my problem i.e.,   When i am adding an calendar event, an email is getting triggered to &lt;a href="mailto:test@liferay.com"&gt;test@liferay.com&lt;/a&gt; in Liferay 7.2 . So i dont need the email triggered to &lt;a href="mailto:test@liferay.com"&gt;test@liferay.com&lt;/a&gt; . So, can anyone help me to solve this problem. &lt;/blockquote&gt;Keywords to look up in the documentation are&lt;br /&gt;&lt;ul style="list-style: disc outside;"&gt;&lt;li&gt;ServiceWrapper&lt;/li&gt;&lt;li&gt;MessageQueue (for asynchronous handling)&lt;/li&gt;&lt;/ul&gt;to a lesser degree ModelListener - it might seem like an option, but I&amp;#39;d rather go with ServiceWrapper. In all cases, you most likely want to implement sending the mail asynchronously from your transaction.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2020-06-12T13:13:08Z</dc:date>
  </entry>
  <entry>
    <title>Email triggering to test user when Calendar Event is created</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119376700" />
    <author>
      <name>Shiva Lingam K</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119376700</id>
    <updated>2020-06-12T11:50:40Z</updated>
    <published>2020-06-12T11:50:40Z</published>
    <summary type="html">Hello everyone,                             I need a solution to my problem i.e.,   When i am adding an calendar event, an email is getting triggered to &lt;a href="mailto:test@liferay.com"&gt;test@liferay.com&lt;/a&gt; in Liferay 7.2 . So i dont need the email triggered to &lt;a href="mailto:test@liferay.com"&gt;test@liferay.com&lt;/a&gt; . So, can anyone help me to solve this problem. </summary>
    <dc:creator>Shiva Lingam K</dc:creator>
    <dc:date>2020-06-12T11:50:40Z</dc:date>
  </entry>
</feed>
