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

  • Thread starter Thread starter Gilles Lambert
  • Start date Start date
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!
 
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
 
Back
Top