<?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 Script to send email in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/script-to-send-email/m-p/280248#M233378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good morning,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to refer to users or groups within a current space, and send an email notifying all of them. I don't use a rule that sends email because I need the document's name in subject.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a rule and executed a script. But I can't find out how to send the mail to the groups without naming the group specifically. I've tried &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var siteGroup = "GROUP_MP_Admin";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mail.parameters.to_many=siteGroup;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I need the group to be variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Marcela&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jun 2014 13:33:15 GMT</pubDate>
    <dc:creator>marcelavar</dc:creator>
    <dc:date>2014-06-26T13:33:15Z</dc:date>
    <item>
      <title>Script to send email</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/script-to-send-email/m-p/280248#M233378</link>
      <description>Good morning,I want to refer to users or groups within a current space, and send an email notifying all of them. I don't use a rule that sends email because I need the document's name in subject.I created a rule and executed a script. But I can't find out how to send the mail to the groups without n</description>
      <pubDate>Thu, 26 Jun 2014 13:33:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/script-to-send-email/m-p/280248#M233378</guid>
      <dc:creator>marcelavar</dc:creator>
      <dc:date>2014-06-26T13:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script to send email</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/script-to-send-email/m-p/280249#M233379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not very clear what you mean. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A little suggestion: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can save your group name in a property of your space node or other nodes, then get the group name in your script from the space node(or other nodes).&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 14:44:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/script-to-send-email/m-p/280249#M233379</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-06-26T14:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Script to send email</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/script-to-send-email/m-p/280250#M233380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much! I solved it the way you suggested, I add this sentences in my script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var siteGroup = "GROUP_MP_"+space.parent.name+space.name;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; mail.parameters.to_many=siteGroup;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And the group has the name exactly as the spaces referred.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 16:30:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/script-to-send-email/m-p/280250#M233380</guid>
      <dc:creator>marcelavar</dc:creator>
      <dc:date>2014-06-26T16:30:43Z</dc:date>
    </item>
  </channel>
</rss>

