Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

link a web page to a public folder in Outlook

Status
Not open for further replies.

williamsba

Programmer
Aug 3, 2000
57
US
I am trying to link a webpage to a public folder in Outlook. Now I found some sample code that is supposed to do this but for some reason it is not showing up. I know that i didnt include much detail, but Im not very good with ASP yet. Here is the code:


<%@ LANGUAGE=&quot;VBSCRIPT&quot; %>

<HTML>
<HEAD>
<META NAME=&quot;GENERATOR&quot; Content=&quot;Microsoft FrontPage 4.0&quot;>
<META HTTP-EQUIV=&quot;Content-Type&quot; content=&quot;text/html;charset=iso-8859-1&quot;>
<TITLE>G-6 Help Desk</TITLE>
</HEAD>
<BODY>

<%
CONST strServer = &quot;158.237.164.65&quot;
CONST strMailbox = &quot;IUSR_2fssgras&quot;
Dim objSession
Dim objMessages
Dim objOneMessage
Dim objInfoStores
Dim objInfoStore
Dim objTopFolder = &quot;pub.edb&quot;
Dim objFolders = &quot;All Public Folders&quot;
Dim objSubFolder = &quot;2FSSG&quot;
Dim objTargetFolder = &quot;G6 HelpDesk&quot;
Dim strProfileInfo
Dim i
Dim bstrPublicRootID

strProfileInfo = strServer & vblf & strMailbox
Set objSession = Server.CreateObject(&quot;MAPI.Session&quot;)
objSession.Logon, , , False, , True, strProfileInfo
Set objInfoStores = objSession.InfoStores
For i = 1 To objInfoStores.Count
If objInfoStores.Item(i)=&quot;Public Folders&quot; Then
Set objInfoStore=objInfoStores.Item(i)
Exit For
End If
Next

bstrPublicRootID = objInfoStore.Fields.Item(&H66310102).Value
Set objTopFolder = objSession.GetFolder(bstrPublicRootID, _
objInfoStore.ID)
Set objFolders = objTopFolder.Folders
Set objFolder = objFolders.GetFirst()
Do Until objFolder.Name = &quot;G6 HelpDesk&quot;
Set objFolder=objFolders.GetNext()
Loop
Set objMessages = objFolder.Messages
For Each objOneMessage in objMessages
Response.Write(&quot;objOneMessage.Subject = &quot; & objOneMessage.Subject & &quot;<br>&quot;)
Response.Write(&quot;objOneMessage.Text = &quot; & objOneMessage.Text & &quot;<br>&quot;)
Next
objSession.Logoff
Set objOneMessage = Nothing
Set objMessages = Nothing
Set objFolder = Nothing
Set objTopFolder = Nothing
Set objSession = Nothing
%>
</BODY>
</HTML>

Any info on this subject would be extremely helpful..

Thank you [sig]<p>Brad Williams<br><a href=mailto:williamsba1@2fssg.usmc.mil>williamsba1@2fssg.usmc.mil</a><br><a href= FSSG Homepage</a><br> [/sig]
 
inbox display :

<HTML>

<OBJECT
classid=CLSID:0006F063-0000-0000-C000-000000000046
codeBase=common/outlctlx.CAB#ver=9,0,3024
height=192 id=HighPriorityMessages
style=&quot;HEIGHT: 100%; WIDTH: 100%&quot; width=192><PARAM NAME=&quot;View&quot; VALUE=&quot;&quot;><PARAM NAME=&quot;Folder&quot; VALUE=&quot;&quot;><PARAM NAME=&quot;Namespace&quot; VALUE=&quot;MAPI&quot;><PARAM NAME=&quot;Restriction&quot; VALUE=&quot;&quot;><PARAM NAME=&quot;DeferUpdate&quot; VALUE=&quot;0&quot;></OBJECT>

</HTML>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top