Article ID: 194870 - Last Review: May 19, 2005 - Revision: 3.0 How to access SMTP headers of a message using CDO (1.x)This article was previously published under Q194870 SUMMARY
This article demonstrates how to get the Internet headers from a SMTP
(Simple Mail Transfer Protocol) message received from the Internet using
Collaboration Data Objects (1.2, 1.21) and Visual Basic.
MORE INFORMATION
This can be done by using the fields collection of the message and
displaying the value of the CdoPR_TRANSPORT_MESSAGE_HEADERS property, which
contains the SMTP header information for a Internet mail message. This
sample assumes that you already have a message received from the Internet
titled "Test Internet message" in your Inbox.
Copy and paste the following code into a Visual Basic project which references the Collaboration Data Objects (1.2, 1.21) library: REFERENCES
For an example of how to access the SMTP header when using Visual C++,
please see the following article in the Microsoft Knowledge Base:
178073
(http://support.microsoft.com/kb/178073/EN-US/
)
How To Obtaining the SMTP Header for a MAPI Message
For additional information on SMTP:
87022
(http://support.microsoft.com/kb/87022/EN-US/
)
SMTP: Definition of SMTP
Microsoft Developer Network Library; search on: "MAPI Property Tags"
| Article Translations
|

Back to the top
