<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic E-mail notification for Discussion Feature in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/e-mail-notification-for-discussion-feature/m-p/112045#M31220</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am using alfresco community version 5.2. I am using the &lt;FONT face="arial black,avant garde" size="4"&gt;&lt;FONT color="#FF0000"&gt;D&lt;/FONT&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;i&lt;/FONT&gt;scussions&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt; feature provided by alfresco. I have set e-mail settings using the configuration in global properties:&lt;/P&gt;&lt;P&gt;##SMTP Configuration##&lt;/P&gt;&lt;P&gt;mail.host=smtp.gmail.com&lt;BR /&gt;mail.port=465&lt;BR /&gt;mail.username=rRajandaddu@gmail.com&lt;BR /&gt;mail.password=iamhuman@2367&lt;BR /&gt;mail.protocol=smtps&lt;BR /&gt;mail.smtps.starttls.enable=true&lt;BR /&gt;mail.smtps.auth=true&lt;BR /&gt;mail.from.default=rRajandaddu@gmail.com&lt;BR /&gt;mail.from.enabled=false&lt;BR /&gt;mail.encoding=UTF-8&lt;/P&gt;&lt;P&gt;mail.testmessage.send=true&lt;BR /&gt;mail.testmessage.to=rRajandaddu@gmail.com&lt;BR /&gt;mail.testmessage.subject=Inbound SMTP&lt;BR /&gt;mail.testmessage.text=Successfully implemented in Rajandaddu DMS.&lt;/P&gt;&lt;P&gt;But email is not notifying.&lt;/P&gt;&lt;P&gt;I am using the &lt;FONT face="arial black,avant garde" size="4" color="#FF0000"&gt;Discussions&lt;/FONT&gt; feature so i want mail notification should be send as any new topic is initiated to all involved in that discussion . And while replying to any others the reply should be notified in the mail whom anyone have replied.&lt;/P&gt;&lt;P&gt;As well as there is no option of attaching any documents with the topic .How to achieve this .&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Akash D&lt;/P&gt;</description>
    <pubDate>Mon, 31 Aug 2020 10:12:04 GMT</pubDate>
    <dc:creator>akash251998</dc:creator>
    <dc:date>2020-08-31T10:12:04Z</dc:date>
    <item>
      <title>E-mail notification for Discussion Feature</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/e-mail-notification-for-discussion-feature/m-p/112045#M31220</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am using alfresco community version 5.2. I am using the &lt;FONT face="arial black,avant garde" size="4"&gt;&lt;FONT color="#FF0000"&gt;D&lt;/FONT&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;i&lt;/FONT&gt;scussions&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt; feature provided by alfresco. I have set e-mail settings using the configuration in global properties:&lt;/P&gt;&lt;P&gt;##SMTP Configuration##&lt;/P&gt;&lt;P&gt;mail.host=smtp.gmail.com&lt;BR /&gt;mail.port=465&lt;BR /&gt;mail.username=rRajandaddu@gmail.com&lt;BR /&gt;mail.password=iamhuman@2367&lt;BR /&gt;mail.protocol=smtps&lt;BR /&gt;mail.smtps.starttls.enable=true&lt;BR /&gt;mail.smtps.auth=true&lt;BR /&gt;mail.from.default=rRajandaddu@gmail.com&lt;BR /&gt;mail.from.enabled=false&lt;BR /&gt;mail.encoding=UTF-8&lt;/P&gt;&lt;P&gt;mail.testmessage.send=true&lt;BR /&gt;mail.testmessage.to=rRajandaddu@gmail.com&lt;BR /&gt;mail.testmessage.subject=Inbound SMTP&lt;BR /&gt;mail.testmessage.text=Successfully implemented in Rajandaddu DMS.&lt;/P&gt;&lt;P&gt;But email is not notifying.&lt;/P&gt;&lt;P&gt;I am using the &lt;FONT face="arial black,avant garde" size="4" color="#FF0000"&gt;Discussions&lt;/FONT&gt; feature so i want mail notification should be send as any new topic is initiated to all involved in that discussion . And while replying to any others the reply should be notified in the mail whom anyone have replied.&lt;/P&gt;&lt;P&gt;As well as there is no option of attaching any documents with the topic .How to achieve this .&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Akash D&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 10:12:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/e-mail-notification-for-discussion-feature/m-p/112045#M31220</guid>
      <dc:creator>akash251998</dc:creator>
      <dc:date>2020-08-31T10:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: E-mail notification for Discussion Feature</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/e-mail-notification-for-discussion-feature/m-p/112046#M31221</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/79410"&gt;@akash251998&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gmail does't allow to use smpt feature by default now and considers it as unsecure practice for the gmail account. However, if you are trying to use the gmail smtp, you need to enable it from your account's security settings.&lt;/P&gt;
&lt;P&gt;&lt;U&gt;In order to send email via gmail follow the steps below:&lt;/U&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Login to gmail account via your credentials&lt;/LI&gt;
&lt;LI&gt;Go to: &lt;A href="https://www.google.com/settings/security/lesssecureapps" target="_blank" rel="noopener nofollow noreferrer"&gt;https://www.google.com/settings/security/lesssecureapps&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;You will see "Allow less secure apps" option. Click "Turn on"&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you have already done these steps, check the server log and see if you can locate any errors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also setup local smtp server (using Apache James/Hedwid/Fakesmtp etc.) if you are doing email functionality testing, refer the post below:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://javaworld-abhinav.blogspot.com/2019/04/setting-up-local-mail-server-using.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://javaworld-abhinav.blogspot.com/2019/04/setting-up-local-mail-server-using.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 14:31:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/e-mail-notification-for-discussion-feature/m-p/112046#M31221</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-08-31T14:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: E-mail notification for Discussion Feature</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/e-mail-notification-for-discussion-feature/m-p/112047#M31222</link>
      <description>&lt;P&gt;Thanks for the response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I have already done the gmail setting change.&amp;nbsp; My objective is that I am using discussion feature and I want that when someone&amp;nbsp; replies to someone's topic then they get notified by mail .So how to achieve that one .&lt;/P&gt;&lt;P&gt;Like A starts a discussion topic and tag B C and D . Now if B replies to A then A should get notified by a mail that B have commented like this . Is there any possible way to do it..&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 14:41:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/e-mail-notification-for-discussion-feature/m-p/112047#M31222</guid>
      <dc:creator>akash251998</dc:creator>
      <dc:date>2020-08-31T14:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: E-mail notification for Discussion Feature</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/e-mail-notification-for-discussion-feature/m-p/112048#M31223</link>
      <description>&lt;P&gt;ok i thought you have implemented email notifications already and have problems with sending/receiving emails.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alfresco Discussions feature doesn't have notification functionality by default as far as i know. You have to implement the functionality youself.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Quick hint:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;As you know anything you create in alfresco is created as a node. This discussion functionality also has a model called &lt;A href="https://github.com/Alfresco/alfresco-repository/blob/master/src/main/resources/alfresco/model/forumModel.xml" target="_blank" rel="noopener nofollow noreferrer"&gt;forumModel&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;All Topics have a type (&lt;SPAN&gt;fm: topic&lt;/SPAN&gt;) and all posts/replies (&lt;SPAN&gt;fm: post&lt;/SPAN&gt;) also have a type under the hood. All fm: post are created as association to fm: topic using cm: contains child-association.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a behavior which can listen to &lt;A href="https://github.com/Alfresco/alfresco-repository/blob/master/src/main/java/org/alfresco/repo/node/NodeServicePolicies.java#L94" target="_self" rel="nofollow noopener noreferrer"&gt;OnCreateNode&amp;nbsp;&lt;/A&gt;/&amp;nbsp;&lt;A href="https://github.com/Alfresco/alfresco-repository/blob/master/src/main/java/org/alfresco/repo/node/NodeServicePolicies.java#L147" target="_self" rel="nofollow noopener noreferrer"&gt;OnUpdateNode&lt;/A&gt;&amp;nbsp;/ &lt;A href="https://github.com/Alfresco/alfresco-repository/blob/master/src/main/java/org/alfresco/repo/node/NodeServicePolicies.java#L284" target="_self" rel="nofollow noopener noreferrer"&gt;OnCreateChildAssociation&lt;/A&gt;&amp;nbsp;/ &lt;A href="https://github.com/Alfresco/alfresco-repository/blob/master/src/main/java/org/alfresco/repo/content/ContentServicePolicies.java#L56" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;SPAN class="pl-e"&gt;OnContentUpdate&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;events depending on your use case and get the modifier of node (userName) and use &lt;A href="https://github.com/Alfresco/alfresco-repository/blob/master/src/main/java/org/alfresco/service/cmr/security/PersonService.java#L76" target="_self" rel="nofollow noopener noreferrer"&gt;PersonService&lt;/A&gt; to find the email id of the user and notify using &lt;A href="https://github.com/Alfresco/alfresco-repository/blob/master/src/main/java/org/alfresco/repo/action/executer/MailActionExecuter.java" target="_self" rel="nofollow noopener noreferrer"&gt;MailActionExecuter&lt;/A&gt;&amp;nbsp; or create your custom email utility whichever suits your needs.&lt;/P&gt;
&lt;P&gt;Also have a look at this add-on and see if it is useful:&amp;nbsp;&lt;A href="https://github.com/malariagen/alfresco-discussions" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/malariagen/alfresco-discussions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 15:23:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/e-mail-notification-for-discussion-feature/m-p/112048#M31223</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-08-31T15:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: E-mail notification for Discussion Feature</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/e-mail-notification-for-discussion-feature/m-p/112049#M31224</link>
      <description>&lt;P&gt;The alfresco discussions addon doesn't work properly as of 5.2 (ref&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/rules-not-working-after-upgrade/m-p/294181#M16809" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/rules-not-working-after-upgrade/m-p/294181#M16809&lt;/A&gt;), which also means the simple way of implementing this functionality won't work either.&lt;/P&gt;&lt;P&gt;As discussions are deprecated anyway I've no plans to fix it - we've moved our discussions to discourse instead - wasn't that hard to write a migration script&lt;/P&gt;&lt;P&gt;(I haven't tried it on later versions)&lt;/P&gt;&lt;P&gt;Inconvenient and a nail in the coffin of our Alfresco implementation but there you go...&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 10:54:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/e-mail-notification-for-discussion-feature/m-p/112049#M31224</guid>
      <dc:creator>idwright</dc:creator>
      <dc:date>2020-09-08T10:54:28Z</dc:date>
    </item>
  </channel>
</rss>

