<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Outlook email address retrieval</title><link>https://www.infopathdev.com:443/forums/thread/7191.aspx</link><pubDate>Tue, 02 May 2006 13:09:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7191</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7191.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7191</wfw:commentRss><description>Hey all,&lt;br /&gt;&lt;br /&gt;i need to do the same using C#. It should be possible for the user to select an email address from the addressbook and this address should be written into a textfield on my form.&lt;br /&gt;&lt;br /&gt;Can someone help me with this.&lt;br /&gt;&lt;br /&gt;Thx&lt;br /&gt;</description></item><item><title>Re: Outlook email address retrieval</title><link>https://www.infopathdev.com:443/forums/thread/7190.aspx</link><pubDate>Thu, 09 Mar 2006 16:23:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7190</guid><dc:creator>SDD</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7190.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7190</wfw:commentRss><description>Dear gds/Agni,&lt;br /&gt;I'am trying to solve the same problem, trying to retrieve the mail address and 'browsing' the outlook address book, below code / question seems not to be answered/finalized, did you succeed in this??&lt;br /&gt;&lt;br /&gt;I'am getting an error concerning the MAPI control, is it an external ActiveX needed to be registered?&lt;br /&gt;&lt;br /&gt;Hope you can help,&lt;br /&gt;&lt;br /&gt;BR,&lt;br /&gt;SDD&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by gds140&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Sorry about that, this will be easier to read:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Sub AppSubsystemOwnersBtn_OnClick(eventObj)&lt;br /&gt;    Dim I&lt;br /&gt;    Dim strRecip&lt;br /&gt;    Dim Owners&lt;br /&gt;    &lt;br /&gt;    'On Error Resume Next&lt;br /&gt;    strDialogCaption = "Select " &amp; strUDFieldName&lt;br /&gt;    Set objCDO = CreateObject("MAPI.Session")&lt;br /&gt;    &lt;br /&gt;    'Piggyback on existing Outlook session&lt;br /&gt;    objCDO.Logon "", "", False, False, 0&lt;br /&gt;    &lt;br /&gt;    If Err Then&lt;br /&gt;        MsgBox "Could not establish CDO session!", vbCritical&lt;br /&gt;    End If&lt;br /&gt;    &lt;br /&gt;     Set Recips = objCDO.AddressBook(Nothing, _&lt;br /&gt;        strDialogCaption, False, True, 1, strShortName, "", "", 0)&lt;br /&gt;    'These recipients have been resolved by forceResolution argument above&lt;br /&gt;   &lt;br /&gt;     If Not Err Then&lt;br /&gt;        For i = 1 To Recips.Count&lt;br /&gt;            strRecip = strRecip &amp; Recips(i).Name &amp; "; "&lt;br /&gt;        Next&lt;br /&gt;        &lt;br /&gt;            If strRecip &amp;lt;&amp;gt; "" Then&lt;br /&gt;            strRecip = Left(strRecip, Len(strRecip)-2)&lt;br /&gt;            strUDFieldName = strRecip&lt;br /&gt;            &lt;br /&gt;            set Owners = XDocument.DOM.selectSingleNode("my:myFields/my:AppSubsystemOwners")&lt;br /&gt;			Owners.text = strRecip&lt;br /&gt;        End If&lt;br /&gt;    End If&lt;br /&gt;    &lt;br /&gt;    objCDO.Logoff&lt;br /&gt;    &lt;br /&gt;End Sub&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;</description></item><item><title>Re: Outlook email address retrieval</title><link>https://www.infopathdev.com:443/forums/thread/7189.aspx</link><pubDate>Fri, 15 Jul 2005 13:59:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7189</guid><dc:creator>gds140</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7189.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7189</wfw:commentRss><description>Sorry about that, this will be easier to read:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Sub AppSubsystemOwnersBtn_OnClick(eventObj)&lt;br /&gt;    Dim I&lt;br /&gt;    Dim strRecip&lt;br /&gt;    Dim Owners&lt;br /&gt;    &lt;br /&gt;    'On Error Resume Next&lt;br /&gt;    strDialogCaption = "Select " &amp; strUDFieldName&lt;br /&gt;    Set objCDO = CreateObject("MAPI.Session")&lt;br /&gt;    &lt;br /&gt;    'Piggyback on existing Outlook session&lt;br /&gt;    objCDO.Logon "", "", False, False, 0&lt;br /&gt;    &lt;br /&gt;    If Err Then&lt;br /&gt;        MsgBox "Could not establish CDO session!", vbCritical&lt;br /&gt;    End If&lt;br /&gt;    &lt;br /&gt;     Set Recips = objCDO.AddressBook(Nothing, _&lt;br /&gt;        strDialogCaption, False, True, 1, strShortName, "", "", 0)&lt;br /&gt;    'These recipients have been resolved by forceResolution argument above&lt;br /&gt;   &lt;br /&gt;     If Not Err Then&lt;br /&gt;        For i = 1 To Recips.Count&lt;br /&gt;            strRecip = strRecip &amp; Recips(i).Name &amp; "; "&lt;br /&gt;        Next&lt;br /&gt;        &lt;br /&gt;            If strRecip &amp;lt;&amp;gt; "" Then&lt;br /&gt;            strRecip = Left(strRecip, Len(strRecip)-2)&lt;br /&gt;            strUDFieldName = strRecip&lt;br /&gt;            &lt;br /&gt;            set Owners = XDocument.DOM.selectSingleNode("my:myFields/my:AppSubsystemOwners")&lt;br /&gt;			Owners.text = strRecip&lt;br /&gt;        End If&lt;br /&gt;    End If&lt;br /&gt;    &lt;br /&gt;    objCDO.Logoff&lt;br /&gt;    &lt;br /&gt;End Sub&lt;br /&gt;&lt;/pre&gt;</description></item><item><title>Re: Outlook email address retrieval</title><link>https://www.infopathdev.com:443/forums/thread/7188.aspx</link><pubDate>Fri, 15 Jul 2005 13:56:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7188</guid><dc:creator>gds140</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7188.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7188</wfw:commentRss><description>Agni, here is the code snippet. It currently populates a text box with the name from the address book, but not the email.&lt;br /&gt;&lt;br /&gt;Sub AppSubsystemOwnersBtn_OnClick(eventObj)&lt;br /&gt;	Dim I&lt;br /&gt;    Dim strRecip&lt;br /&gt;    Dim Owners&lt;br /&gt;    &lt;br /&gt;    On Error Resume Next&lt;br /&gt;    strDialogCaption = "Select " &amp; strUDFieldName&lt;br /&gt;    Set objCDO = CreateObject("MAPI.Session")&lt;br /&gt;    'Piggyback on existing Outlook session&lt;br /&gt;    objCDO.Logon "", "", False, False, 0&lt;br /&gt;    If Err Then&lt;br /&gt;        MsgBox "Could not establish CDO session!", vbCritical&lt;br /&gt;    End If&lt;br /&gt;    Set Recips = objCDO.AddressBook(Nothing, _&lt;br /&gt;        strDialogCaption, False, True, 1, strShortName, "", "", 0)&lt;br /&gt;    'These recipients have been resolved by forceResolution argument above&lt;br /&gt;    If Not Err Then&lt;br /&gt;        For i = 1 To Recips.Count&lt;br /&gt;            strRecip = strRecip &amp; Recips(i).Name &amp; "; "&lt;br /&gt;        Next&lt;br /&gt;        If strRecip &amp;lt;&amp;gt; "" Then&lt;br /&gt;            strRecip = Left(strRecip, Len(strRecip)-2)&lt;br /&gt;            strUDFieldName = strRecip&lt;br /&gt;            &lt;br /&gt;            set Owners = XDocument.DOM.selectSingleNode("my:myFields/my:AppSubsystemOwners")&lt;br /&gt;			Owners.text = strRecip&lt;br /&gt;        End If&lt;br /&gt;    End If&lt;br /&gt;    &lt;br /&gt;    objCDO.Logoff&lt;br /&gt;    &lt;br /&gt;End Sub</description></item><item><title>Re: Outlook email address retrieval</title><link>https://www.infopathdev.com:443/forums/thread/7187.aspx</link><pubDate>Fri, 15 Jul 2005 06:46:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7187</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7187.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7187</wfw:commentRss><description>Hi gds, Welcome to the forum!&lt;br /&gt;If you provide the code how you are poping up outlook address book and how you are getting Name from it, we can try and check how we will be able to get the email address from that.&lt;br /&gt;If the code is way too big you can email me.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPathDev India</description></item><item><title>Outlook email address retrieval</title><link>https://www.infopathdev.com:443/forums/thread/4783.aspx</link><pubDate>Thu, 14 Jul 2005 20:04:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4783</guid><dc:creator>gds140</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4783.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4783</wfw:commentRss><description>I'm currently working on an Infopath form where I need to pop up an outlook address book and then populate a text box with an email address that corresponds to the name selected from the address book. I have the book popping up but haven't had any luck grabbing the email address. I can get the name, but not the email address. Anyone have any idea how to go about doing this? Thanks in advance for any suggestions.</description></item></channel></rss>