473,804 Members | 3,113 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_FOUN D, i.e., the property doesn't
exist.

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

Other articles tell me that the Outlook.MailIte m 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 4594
PR_TRANSPORT_ME SSAGE_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.te ranews.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_FOUN D, i.e., the property doesn't
exist.

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

Other articles tell me that the Outlook.MailIte m 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
3873
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 experience with web programming apart from basic html, forms etc. 1). I've extracted the following from the login page
5
2457
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 up the indexing. For example: The form has a tagid of "myForm" The hidden object has a tagId of "myHiddenObj"
0
2652
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 information for Office automation than the c# groups. I am having some problems manipulating the various object models. I say various because based on what source code I could find, I am trying to use the Outlook, CDO and MAPI type libraries
0
296
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 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
0
1423
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 page to page I need to emulate a browser keeping a session active. I'm currently using the .Net code below to access each web page. If I get back an ASPSESSIONID cookie, I store it in a Cookie object, and keep passing that object back every...
5
3070
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 explorer would do in this case. The headers I am getting are: Headers {Content-Disposition: attachment; filename="dynamic_file.mdb" Connection: close Cache-Control: private Content-Type: application/octet-stream
2
3214
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 copies their document to a staging directory (because they're renamed to a unique filename for storage), then Respons.redirect()'ed to the staged file for download. This works great for most files(.doc,.xls,.psd,.pdf). However, I have discovered...
4
4470
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 this exception: System.Net.WebException: The request failed with HTTP status 407: Proxy Authentication Required. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream...
2
5199
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 wireless mode and any computer on the wireless or local area network can see the camera and access the video. The setup went perfect for the internal network. But I cannot for the life of me see why the configurations I have set to see the camera...
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10332
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9152
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5522
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2991
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.