Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stripping Email Headers?

Status
Not open for further replies.

jrapp

Programmer
May 15, 2003
25
US
Hey everyone,
I'm working on an email tracking system for a customer service company. I've established how to send and recieve messages, but my question is, does anybody have any suggestions as how to strip out the headers from the message so that I can forward it to another mailbox? Thanks!

Jeff Rapp
 
If you're using a MapiMessage control to fetch the email then setting the MsgIndex to loop through form 0 to MsgCount - 1 will reference each email in your Inbox in turn. From there you can access the body with MsgNoteText. The MapiMessage control I'm using is called mapMess.

mapMess.Fetch
'MsgBox "Total Message: " + Str(mapMess.MsgCount)
Dim myMessage As Long
For myMessage = 0 To mapMess.MsgCount - 1
mapMess.MsgIndex = myMessage
Debug.Print mapMess.MsgNoteText
Next


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top