<?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: Sending Email to Owner of document in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/sending-email-to-owner-of-document/m-p/75705#M49811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wow ! What a magic ! It works as expected. Thanks a bunch Blackout !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Senthil.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2007 04:10:09 GMT</pubDate>
    <dc:creator>senthil_chinnai</dc:creator>
    <dc:date>2007-03-08T04:10:09Z</dc:date>
    <item>
      <title>Sending Email to Owner of document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-email-to-owner-of-document/m-p/75703#M49809</link>
      <description>Hi All:I am configuring Advanced Workflow to notify users in various stages. I could successfully do it between initiator &amp;lt;==&amp;gt; reviewer, but I would like to send email to the owner of the content once the task is done. I don't know how to get the owner's email id in process definition file.Ple</description>
      <pubDate>Wed, 07 Mar 2007 11:18:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-email-to-owner-of-document/m-p/75703#M49809</guid>
      <dc:creator>senthil_chinnai</dc:creator>
      <dc:date>2007-03-07T11:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email to Owner of document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-email-to-owner-of-document/m-p/75704#M49810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Assumed that the "owner" you're talking about is the "creator" (as you can see in the Document Details page), it can be simply retrived with this code:&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var ownerGuy = bpm_package.children[0].properties.creator;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;You can after use this string to get the user itself in this way:&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var ownerMail = people.getPerson(ownerGuy).properties["cm:email"];&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;By what you previously wrote, I think you can send an email within a script, so no more code needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that the "author" is different from the "creator": the creator is the person who created the Node representing the document in the Alfresco repository, and is obviously an Alfresco user; the author is instead a random person who created the file itself that is not an Alfresco user in most of the cases (i.e. if the document is "La Divina Commedia" I doubt you'll find Dante's email address &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S.: I personally tested the first line of code, didn't try the second because mail server is down at the moment &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2007 14:25:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-email-to-owner-of-document/m-p/75704#M49810</guid>
      <dc:creator>blackout</dc:creator>
      <dc:date>2007-03-07T14:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sending Email to Owner of document</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sending-email-to-owner-of-document/m-p/75705#M49811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wow ! What a magic ! It works as expected. Thanks a bunch Blackout !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Senthil.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2007 04:10:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sending-email-to-owner-of-document/m-p/75705#M49811</guid>
      <dc:creator>senthil_chinnai</dc:creator>
      <dc:date>2007-03-08T04:10:09Z</dc:date>
    </item>
  </channel>
</rss>

