<?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 [BUG]Alfresco sending multiple emails depending on the number of user in a group in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/bug-alfresco-sending-multiple-emails-depending-on-the-number-of/m-p/312267#M265397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I added a javascript to send an email to a particular group whenever a site is created but the problem is if the group has three members each will receive three mails. If there is 250 members each will receive 250 emails. I dont know what is the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my javascript&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var parent = space.getParent();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var siteGroup = "GROUP_EMAIL_CONTRIBUTORS";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var mail = actions.create("mail");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var url = "&lt;/SPAN&gt;&lt;A href="http://pc1:8080/share/page/site/" rel="nofollow noopener noreferrer"&gt;http://pc1:8080/share/page/site/&lt;/A&gt;&lt;SPAN&gt;" + document.properties.name + "/dashboard";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mail.parameters.to_many = siteGroup;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mail.parameters.subject="New Site Created in Community"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mail.parameters.text="Click &lt;/SPAN&gt;&lt;A href="http://pc1:8080/share/page/site/" rel="nofollow noopener noreferrer"&gt;http://pc1:8080/share/page/site/&lt;/A&gt;&lt;SPAN&gt;" + document.properties.name + "/dashboard to join the site"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//execute action against a document&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mail.execute(document);&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2014 12:15:32 GMT</pubDate>
    <dc:creator>samnaction</dc:creator>
    <dc:date>2014-03-25T12:15:32Z</dc:date>
    <item>
      <title>[BUG]Alfresco sending multiple emails depending on the number of user in a group</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bug-alfresco-sending-multiple-emails-depending-on-the-number-of/m-p/312267#M265397</link>
      <description>I added a javascript to send an email to a particular group whenever a site is created but the problem is if the group has three members each will receive three mails. If there is 250 members each will receive 250 emails. I dont know what is the problem.Here is my javascriptvar parent = space.getPar</description>
      <pubDate>Tue, 25 Mar 2014 12:15:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bug-alfresco-sending-multiple-emails-depending-on-the-number-of/m-p/312267#M265397</guid>
      <dc:creator>samnaction</dc:creator>
      <dc:date>2014-03-25T12:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: [BUG]Alfresco sending multiple emails depending on the number of user in a group</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bug-alfresco-sending-multiple-emails-depending-on-the-number-of/m-p/312268#M265398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yeah. I can replicate this problem on my local environment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to know how many users are you holding in the group EMAIL_CONTRIBUTORS. If it's very less, then you can use the below code as a work around:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var mail = actions.create("mail");&lt;BR /&gt;&lt;BR /&gt; var node = people.getGroup("GROUP_EMAIL_CONTRIBUTORS");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(node){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var members = people.getMembers(node);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; mail.parameters.subject=" A new site called" + document.properties.name+"is created"; &lt;BR /&gt; mail.parameters.text="Login to share to join the site";&lt;BR /&gt; &lt;BR /&gt; for(var i=0;i&amp;lt;members.length;i++)&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; mail.parameters.to = members&lt;EM&gt;.properties.email;&lt;BR /&gt; //execute action against a document&lt;BR /&gt; mail.execute(document);&lt;BR /&gt; }&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 10:03:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bug-alfresco-sending-multiple-emails-depending-on-the-number-of/m-p/312268#M265398</guid>
      <dc:creator>sanket</dc:creator>
      <dc:date>2014-03-26T10:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: [BUG]Alfresco sending multiple emails depending on the number of user in a group</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bug-alfresco-sending-multiple-emails-depending-on-the-number-of/m-p/312269#M265399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have around 250 users can I use this&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 11:48:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bug-alfresco-sending-multiple-emails-depending-on-the-number-of/m-p/312269#M265399</guid>
      <dc:creator>samnaction</dc:creator>
      <dc:date>2014-03-26T11:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: [BUG]Alfresco sending multiple emails depending on the number of user in a group</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bug-alfresco-sending-multiple-emails-depending-on-the-number-of/m-p/312270#M265400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't recommend if there are so many users; but you can check the performance of the system (on your local environment) once this script gets executed. If it doesn't affect the performance much, you can continue with it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to find an alternative way, but I am still getting multiple emails. Will update you, if I get something useful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Refer this link, the last post particularly (if it helps you):&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://forums.alfresco.com/comment/64566#comment-64566" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/comment/64566#comment-64566&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 11:57:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bug-alfresco-sending-multiple-emails-depending-on-the-number-of/m-p/312270#M265400</guid>
      <dc:creator>sanket</dc:creator>
      <dc:date>2014-03-26T11:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: [BUG]Alfresco sending multiple emails depending on the number of user in a group</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bug-alfresco-sending-multiple-emails-depending-on-the-number-of/m-p/312271#M265401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is a registered bug in alfresco. It should be be fixed in upcoming alfresco version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://issues.alfresco.com/jira/browse/MNT-10945" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/MNT-10945&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Till then, you can keep using the above suggested approach.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 12:03:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bug-alfresco-sending-multiple-emails-depending-on-the-number-of/m-p/312271#M265401</guid>
      <dc:creator>sanket</dc:creator>
      <dc:date>2014-03-26T12:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: [BUG]Alfresco sending multiple emails depending on the number of user in a group</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bug-alfresco-sending-multiple-emails-depending-on-the-number-of/m-p/312272#M265402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check the answer suggested here &lt;/SPAN&gt;&lt;A href="http://stackoverflow.com/questions/22654053/how-to-suppress-multiple-email-notification-from-javascript/22658244?noredirect=1#22658244" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/22654053/how-to-suppress-multiple-email-notification-from-javascript/22658244?noredirect=1#22658244&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not able to figure what he is saying&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 12:14:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bug-alfresco-sending-multiple-emails-depending-on-the-number-of/m-p/312272#M265402</guid>
      <dc:creator>samnaction</dc:creator>
      <dc:date>2014-03-26T12:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: [BUG]Alfresco sending multiple emails depending on the number of user in a group</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/bug-alfresco-sending-multiple-emails-depending-on-the-number-of/m-p/312273#M265403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I went through the above link. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no point checking if the document type is st:site. By default, you have configured rule on Company Home/Sites.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any site you create from alfresco share, will have the type st:site.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To verify, just create a new site. Then go to alfresco node browser, traverse to company home &amp;gt; sites &amp;gt; your_site_name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And check it's type (it is by default st:site). And in this folder (Company Home/Sites), you are only going to create a site (through alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;share), not create a folder explicitly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I recommend there is no need to edit share-config-custom.xml or add a subtype.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 07:40:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/bug-alfresco-sending-multiple-emails-depending-on-the-number-of/m-p/312273#M265403</guid>
      <dc:creator>sanket</dc:creator>
      <dc:date>2014-03-27T07:40:45Z</dc:date>
    </item>
  </channel>
</rss>

