How to get access to the Internet headers of a MailItem ?

G

Gilles Lambert

Hi,

I'm trying to get the Return-Path header, but the only thing i found is
the SenderName property of a MailItem object. Does anybody knows how to
get this information ?

Thanks and best regards
Gilles



*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
L

Lars Roland

I am not sure that this can be done in an easy way - but you can always
cycle through the header and start recording when you get to the internet
header

If you have the entire mail header ins msgHeaders then you can do

Dim tempLine As Variant
Dim tempLines() As String
tempLines = Split(msgHeaders, vbCrLf)
For Each tempLine In tempLines
;
yada
- search for internet accoring to SMTP RFC
yada
;
Next


Perhaps some of the outlook gurus know an easier way (mabee redemption can
do it).


Regards

Lars Roland
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top