473,386 Members | 1,753 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Accessing Internet Headers

I am trying to write a c# program to access Outlook internet headers for
messages in a public folder.

When I look at these messages in Outlook, and select View/Options, there is
information in the Internet Headers scrollbox.

BUT -- when i run the Visual Basic code ( so far this is the only documented
method I have found, so I'm converting it to c# ) found here:

http://support.microsoft.com/?kbid=194870

It throws an error saying the MAPI_E_NOT_FOUND, i.e., the property doesn't
exist.

YET -- this code works on other mail in my Inbox.

Other articles tell me that the Outlook.MailItem does not contain access to
the Internet Headers so I am using the MAPI object in CDO -- but, as I said,
some emails do not allow the headers to display.
Since I can see the headers in Outlook, shouldn't the Outlook Object Model
allow me to access them ?


Nov 15 '05 #1
1 4565
PR_TRANSPORT_MESSAGE_HEADERS is only available on the messages received from
the internet. Look at the same message using MdbView or OutlookSpy, do you
see this property?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"john bailo" <jb****@vestcom.com> wrote in message
news:8c******************************@news.teranew s.com...
I am trying to write a c# program to access Outlook internet headers for
messages in a public folder.

When I look at these messages in Outlook, and select View/Options, there is information in the Internet Headers scrollbox.

BUT -- when i run the Visual Basic code ( so far this is the only documented method I have found, so I'm converting it to c# ) found here:

http://support.microsoft.com/?kbid=194870

It throws an error saying the MAPI_E_NOT_FOUND, i.e., the property doesn't
exist.

YET -- this code works on other mail in my Inbox.

Other articles tell me that the Outlook.MailItem does not contain access to the Internet Headers so I am using the MAPI object in CDO -- but, as I said, some emails do not allow the headers to display.
Since I can see the headers in Outlook, shouldn't the Outlook Object Model
allow me to access them ?


Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: build | last post by:
G'day All, I'm trying to code a "Data Downloader" to automatically login and download data from www.Investorweb.com.au using the Internet Transfer Control. I have a some VB experience but no...
5
by: Craig Anderson | last post by:
Can anyone tell me the best way to access a hidden object in a form? I could use a hard-coded index to the elements of the form, but it's too easy to add something before the hidden object and mess...
0
by: john bailo | last post by:
I am attempting to create a c# program to iterate through the messages in an Outlook/Exchange public folder and extract the headers. My apologies to the VB/VBA groups, but you seem to have more...
0
by: john bailo | last post by:
I am trying to write a c# program to access Outlook internet headers for messages in a public folder. When I look at these messages in Outlook, and select View/Options, there is information in...
0
by: Dave Alvarado | last post by:
I'm working on some code that gathers data from a web interface to one of our servers (classic ASP). The problem is that the site uses session variables to store login information, so to move from...
5
by: Daniel Corbett | last post by:
I am trying to save a file dynamically created in a webpage. I get the following headers, but cannot figure out how to save the attachment. I am basically trying to replicate what internet...
2
by: Brandon | last post by:
Running IIS 6, Classic ASP Browser: IE and/or Mozilla I have an application that allows users to store documents on my server. When they need to access/download the documents, my application...
4
by: Jon | last post by:
I wrote a VS 2005 C# express programme that accesses a web service. It works fine when there's a direct connection to the internet, but on two different PCs with internet access via a proxy, I get...
2
by: dcblair | last post by:
Hi guys and girls. I can't seem to figure this one out. Here is my setup: Speedtouch 536 DSL Modem, Nexxt 4 Port Wireless Router, CNET CIC 920W Wireless IP Camera. The camera is set up in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.