Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Reading Oulook emails from ASP

Reply
Thread Tools

Reading Oulook emails from ASP

 
 
navin
Guest
Posts: n/a
 
      09-08-2009
Hello All,

I need to read emails from outlook through my webpage and retrieve the
subject line. I am using the below code to do this, but when i test
this, it just hangs around and does nothing and gives timeout error
after sometime.

<head>
<meta http-equiv="Content-Language" content="en-us">
</head>

<%
Const olFolderInbox = 6
Dim msgCount

Set objOutlook = Server.CreateObject("Outlook.Application")
Set objNamespace = objOutlook.GetNamespace("MAPI")
Set objFolder = objNamespace.GetDefaultFolder(olFolderInbox)
Set objUFolder = objFolder.Folders("Oracle POs")

Set colItems = objUFolder.Items
Set colFilteredItems = colItems.Restrict("[Subject] = '4918852'")

For Each objMessage In colFilteredItems

%>
<table border="1" width="100%" id="table1">
<tr>
<td><%= objMessage.Subject %></td>
</tr>
<%
Next
%>

</table>

Please help and advice on how to read outlook mails? I have searched
on this topic but did not get any solution.

Thank you very much for the help..

Navin
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Oulook PST file icon missing xxxxxxxxxx Computer Support 1 12-20-2004 11:59 PM
Lost Oulook Express 6 Folder Alistair Computer Information 1 08-30-2004 06:34 PM
Oulook Express/Internet Explorer printing problems Mike Simpson Computer Support 2 11-12-2003 10:12 PM
Oulook Express william.thomas33 Computer Support 4 11-03-2003 07:47 AM
Re: Word - Oulook Problem Paul - xxx Computer Support 0 07-07-2003 07:36 PM



Advertisments