<?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 Webscript to send email to everyone but the author in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/webscript-to-send-email-to-everyone-but-the-author/m-p/272901#M226031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm looking to build a webscript that will send email notification to everyone in the site BUT the author who just uploaded or modified the document.&amp;nbsp; Ideally, I would then have this script kicked off as part of a rule on the folder.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any code that does anything like this or have any pointers to get me in the right direction?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2012 06:37:16 GMT</pubDate>
    <dc:creator>joemc3</dc:creator>
    <dc:date>2012-10-17T06:37:16Z</dc:date>
    <item>
      <title>Webscript to send email to everyone but the author</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-to-send-email-to-everyone-but-the-author/m-p/272901#M226031</link>
      <description>I'm looking to build a webscript that will send email notification to everyone in the site BUT the author who just uploaded or modified the document.&amp;nbsp; Ideally, I would then have this script kicked off as part of a rule on the folder.&amp;nbsp; Does anyone have any code that does anything like this or have an</description>
      <pubDate>Wed, 17 Oct 2012 06:37:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-to-send-email-to-everyone-but-the-author/m-p/272901#M226031</guid>
      <dc:creator>joemc3</dc:creator>
      <dc:date>2012-10-17T06:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript to send email to everyone but the author</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-to-send-email-to-everyone-but-the-author/m-p/272902#M226032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://customizealfresco.blogspot.in/" rel="nofollow noopener noreferrer"&gt;http://customizealfresco.blogspot.in/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 07:43:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-to-send-email-to-everyone-but-the-author/m-p/272902#M226032</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2012-10-17T07:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript to send email to everyone but the author</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-to-send-email-to-everyone-but-the-author/m-p/272903#M226033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I didn't see anything on that linked that answered my question.&amp;nbsp; I'm looking for a way to email everyone EXCEPT the person to uploaded or updated the document.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 22:02:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-to-send-email-to-everyone-but-the-author/m-p/272903#M226033</guid>
      <dc:creator>joemc3</dc:creator>
      <dc:date>2012-11-06T22:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript to send email to everyone but the author</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-to-send-email-to-everyone-but-the-author/m-p/272904#M226034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi joe,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would recommend you to write a java policy for that to get notified when a document is updasted. You can use the siteservice to list the site members and filter out the current user who uploads the document. You can than use the mail action to send a mail to each site member.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps, even if the answer is a little bit late &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jens&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Feb 2013 20:24:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-to-send-email-to-everyone-but-the-author/m-p/272904#M226034</guid>
      <dc:creator>jego</dc:creator>
      <dc:date>2013-02-17T20:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript to send email to everyone but the author</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-to-send-email-to-everyone-but-the-author/m-p/272905#M226035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can create a rule taht executes small javascript code, that will send emails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;email sending would be easy for loop , using this call&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/4.0_JavaScript_Services_API#Get_list_of_site_members" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/4.0_JavaScript_Services_API#Get_list_of_site_members&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then in a loop you can send emial using some of the code here&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://stackoverflow.com/questions/12075743/how-to-send-email-in-alfresco-4" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/12075743/how-to-send-email-in-alfresco-4&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;—-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;no programming skils required.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Mar 2013 21:27:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-to-send-email-to-everyone-but-the-author/m-p/272905#M226035</guid>
      <dc:creator>savic_prvoslav</dc:creator>
      <dc:date>2013-03-24T21:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript to send email to everyone but the author</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-to-send-email-to-everyone-but-the-author/m-p/272906#M226036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joe,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to write a Java Policy of alfresco. Your policy implementation class will need to implement &amp;lt;java&amp;gt;NodeServicePolicies.OnCreateNodePolicy&amp;lt;/java&amp;gt; interface and write its &amp;lt;java&amp;gt;onCreateNode()&amp;lt;/java&amp;gt;. Now whenever a new node is created, this &amp;lt;java&amp;gt;onCreateNode()&amp;lt;/java&amp;gt; will be called. So in this method you need to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Get site name in which document has been uploaded&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Get all members of the site and make a list of members excluding current user/uploader/author &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Once you have members list, get their registered email id(Get PersonNode from the username and from PersonNode get their email id)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) you can use Java Mail API to send mail to all of them.&lt;/SPAN&gt;&lt;EM&gt;&lt;BR /&gt;&lt;BR /&gt;In Policy class of the Alfresco, you also can specify if you want to send the mail when some special type(custom type) of document or document with special aspect is uploaded. You will need to define this in Policy class's &amp;lt;java&amp;gt;init()&amp;lt;/java&amp;gt;.&lt;/EM&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 08:35:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-to-send-email-to-everyone-but-the-author/m-p/272906#M226036</guid>
      <dc:creator>hardik_t_mistry</dc:creator>
      <dc:date>2013-04-11T08:35:05Z</dc:date>
    </item>
  </channel>
</rss>

