<?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 Get Person Email Address and Send Mail in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/get-person-email-address-and-send-mail/m-p/155266#M109623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to get the logged-in-users email address from Alfresco in Java Code (A new Dialog I am creating) and I cannot find where the information is stored.&amp;nbsp; Can anyone point me in the right direction?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The below code gives me the username and the user node but I can't find the email.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;String userName = serviceRegistry.getAuthenticationService().getCurrentUserName();&lt;BR /&gt;NodeRef user = serviceRegistry.getPersonService().getPerson(userName);&lt;SPAN class="line-numbers-rows"&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>Mon, 02 Jun 2008 20:16:41 GMT</pubDate>
    <dc:creator>nyronian</dc:creator>
    <dc:date>2008-06-02T20:16:41Z</dc:date>
    <item>
      <title>Get Person Email Address and Send Mail</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-person-email-address-and-send-mail/m-p/155266#M109623</link>
      <description>I would like to get the logged-in-users email address from Alfresco in Java Code (A new Dialog I am creating) and I cannot find where the information is stored.&amp;nbsp; Can anyone point me in the right direction?The below code gives me the username and the user node but I can't find the email.String userNa</description>
      <pubDate>Mon, 02 Jun 2008 20:16:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-person-email-address-and-send-mail/m-p/155266#M109623</guid>
      <dc:creator>nyronian</dc:creator>
      <dc:date>2008-06-02T20:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get Person Email Address and Send Mail</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-person-email-address-and-send-mail/m-p/155267#M109624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If anybody is ever interested….the following line gets the persons email (added to the script above)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;String address = (String)nodeService.getProperty(user, ContentModel.PROP_EMAIL);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 13:33:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-person-email-address-and-send-mail/m-p/155267#M109624</guid>
      <dc:creator>nyronian</dc:creator>
      <dc:date>2008-06-04T13:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get Person Email Address and Send Mail</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-person-email-address-and-send-mail/m-p/155268#M109625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How did you get the list of logged-in users?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 08:16:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-person-email-address-and-send-mail/m-p/155268#M109625</guid>
      <dc:creator>louise</dc:creator>
      <dc:date>2008-06-30T08:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get Person Email Address and Send Mail</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-person-email-address-and-send-mail/m-p/155269#M109626</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;serviceRegistry.getAuthenticationService().getCurrentUserName();&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this only gets you the current logged-in user. Because this is client side you only get one user.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2008 09:37:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-person-email-address-and-send-mail/m-p/155269#M109626</guid>
      <dc:creator>ivo_costa</dc:creator>
      <dc:date>2008-08-19T09:37:59Z</dc:date>
    </item>
  </channel>
</rss>

