<?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 Re: Creating a email notification when a new site is created in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312137#M265267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Need to check. Go to Alfresco explorer (&lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco&lt;/A&gt;&lt;SPAN&gt;). Login with admin user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Go to Company Home/Sites - More Actions - Manage Content Rules.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit the rule. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post here - 1) Step 1-Condition selected 2) Step 2-Action selected 3) Step 3- Value of the three checkboxes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On Step 3, uncheck the "Apply rule to subspaces" if selected.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Mar 2014 13:02:12 GMT</pubDate>
    <dc:creator>sanket</dc:creator>
    <dc:date>2014-03-24T13:02:12Z</dc:date>
    <item>
      <title>Creating a email notification when a new site is created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312132#M265262</link>
      <description>Whenever a new site is created the user has to get an email notification as " A new site named sample is created. Click this link to join the site"I tried to create a rule and execute a script when a particular site is createdvar parent = space.getParent();var siteShortName = space.getSiteShortName(</description>
      <pubDate>Mon, 24 Mar 2014 11:42:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312132#M265262</guid>
      <dc:creator>samnaction</dc:creator>
      <dc:date>2014-03-24T11:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a email notification when a new site is created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312133#M265263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Print the value of "parent" that you get. If parent is not null, then try :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;logger.log(parent.properties.name);&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you are triggering rule that is configured under Company Home/Sites folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you also print the value of this statement "document.properties.name" and let me know the value ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;logger.log(document.properties.name);&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;If I understand correctly, replacing the below code&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;mail.parameters.subject=" A new site called" +siteShortName +"is created";&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;with&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;mail.parameters.subject=" A new site called" + document.properties.name +"is created";&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;should work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 12:07:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312133#M265263</guid>
      <dc:creator>sanket</dc:creator>
      <dc:date>2014-03-24T12:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a email notification when a new site is created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312134#M265264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That worked but it is sending me two email and any idea how to add the link to particular site to join&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 12:14:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312134#M265264</guid>
      <dc:creator>samnaction</dc:creator>
      <dc:date>2014-03-24T12:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a email notification when a new site is created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312135#M265265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Refer the template located under :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Company Home &amp;gt; Data Dictionary &amp;gt; Email Templates &amp;gt; invite &amp;gt; invite-email.html.ftl&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Add the below statements before - mail.execute(document);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;mail.parameters.template = companyhome.childByNamePath("Data Dictionary/Email Templates/invite/invite-email.html.ftl");&lt;BR /&gt;&lt;BR /&gt;mail.parameters.text = "some text";&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Modify the invite-email.html.ftl based on your requirement.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 12:28:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312135#M265265</guid>
      <dc:creator>sanket</dc:creator>
      <dc:date>2014-03-24T12:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a email notification when a new site is created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312136#M265266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Sanket, but everytime I am getting two mails instead of one mail. I think it is something to do with rule creation. Any idea why it is sending two mails instead of one?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 12:37:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312136#M265266</guid>
      <dc:creator>samnaction</dc:creator>
      <dc:date>2014-03-24T12:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a email notification when a new site is created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312137#M265267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Need to check. Go to Alfresco explorer (&lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco&lt;/A&gt;&lt;SPAN&gt;). Login with admin user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Go to Company Home/Sites - More Actions - Manage Content Rules.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit the rule. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post here - 1) Step 1-Condition selected 2) Step 2-Action selected 3) Step 3- Value of the three checkboxes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On Step 3, uncheck the "Apply rule to subspaces" if selected.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 13:02:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312137#M265267</guid>
      <dc:creator>sanket</dc:creator>
      <dc:date>2014-03-24T13:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a email notification when a new site is created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312138#M265268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created the rule in share. I attached the image&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 05:06:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312138#M265268</guid>
      <dc:creator>samnaction</dc:creator>
      <dc:date>2014-03-25T05:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a email notification when a new site is created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312139#M265269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1) Print something in your email.js file with logger statement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it printing twice ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Try editing the rule and change the condition from - "Description" to "All Items".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Save the rule. Check&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Try editing the rule and change the condition from - "Description" to "Content of type or sub-type" is "Folder".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Save the rule. Check&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know the output of above three points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 07:32:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312139#M265269</guid>
      <dc:creator>sanket</dc:creator>
      <dc:date>2014-03-25T07:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a email notification when a new site is created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312140#M265270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried 2,3 and still it is sending two mails&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 09:07:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312140#M265270</guid>
      <dc:creator>samnaction</dc:creator>
      <dc:date>2014-03-25T09:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a email notification when a new site is created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312141#M265271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you are sending email notification to this group.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var siteGroup = "GROUP_EMAIL_CONTRIBUTORS";&lt;BR /&gt;mail.parameters.to_many = siteGroup;&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;And this group may contain 2 users having same email id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That is why it should be sending two emails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check by just keeping a single user in that group, you should receive only one email.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 09:44:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312141#M265271</guid>
      <dc:creator>sanket</dc:creator>
      <dc:date>2014-03-25T09:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a email notification when a new site is created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312142#M265272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If my above post does not work, try adding these properties to alfresco-global.properties. Restart the server and then check.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;# Set this value to UTF-8 or similar for encoding of email messages as required&lt;BR /&gt;mail.encoding=UTF-8&lt;BR /&gt;# Set this value to 7bit or similar for Asian encoding of email headers as required&lt;BR /&gt;mail.header=7bit&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, try by putting this code in your js file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;mail.parameters.to = "your_email_id";&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;mail.parameters.to_many = siteGroup;&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 09:54:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312142#M265272</guid>
      <dc:creator>sanket</dc:creator>
      <dc:date>2014-03-25T09:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a email notification when a new site is created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312143#M265273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found the issue is related to number of members in the group. If the the group email contributor has two members it will send two mails, three members then three and so on &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 11:37:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312143#M265273</guid>
      <dc:creator>samnaction</dc:creator>
      <dc:date>2014-03-25T11:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a email notification when a new site is created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312144#M265274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any idea on how to do stop this??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 06:11:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312144#M265274</guid>
      <dc:creator>samnaction</dc:creator>
      <dc:date>2014-03-26T06:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a email notification when a new site is created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312145#M265275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you share the script (js file) here ? That will give a clear idea.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly, if there are three users in your email contributor group, all those three users have the same email id set on them ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 06:35:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312145#M265275</guid>
      <dc:creator>sanket</dc:creator>
      <dc:date>2014-03-26T06:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a email notification when a new site is created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312146#M265276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;function sendMail()&lt;BR /&gt;{&lt;BR /&gt;var siteGroup = "GROUP_EMAIL_CONTRIBUTORS";&lt;BR /&gt;var mail = actions.create("mail");&lt;BR /&gt;mail.parameters.to_many = siteGroup;&lt;BR /&gt;var url = "Click &lt;A href="http://pc1:8080/share/page/site/" rel="nofollow noopener noreferrer"&gt;http://pc1:8080/share/page/site/&lt;/A&gt;" + document.properties.name + "/dashboard" + "&amp;nbsp;&amp;nbsp; to join the site";&lt;BR /&gt;mail.parameters.subject="New Site Created in Community";&lt;BR /&gt;mail.parameters.text=url;&lt;BR /&gt;//execute action against a document&lt;BR /&gt;mail.execute(document);&lt;BR /&gt;}&lt;BR /&gt;sendMail();&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the script. Find the attached image. These three users were the member of Email_collborators.&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 06:57:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312146#M265276</guid>
      <dc:creator>samnaction</dc:creator>
      <dc:date>2014-03-26T06:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a email notification when a new site is created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312147#M265277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please find the screen shot of mail I am getting &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 06:59:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312147#M265277</guid>
      <dc:creator>samnaction</dc:creator>
      <dc:date>2014-03-26T06:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a email notification when a new site is created</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312148#M265278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://forums.alfresco.com/comment/145009#comment-145009" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/comment/145009#comment-145009&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 12:13:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-email-notification-when-a-new-site-is-created/m-p/312148#M265278</guid>
      <dc:creator>sanket</dc:creator>
      <dc:date>2014-03-26T12:13:52Z</dc:date>
    </item>
  </channel>
</rss>

