OUTLOOK 2K/VBA Problems to access the email body
Hi Dev fellows,
I am trying to grab the body of an bounced email, flagged whit a System administrator subject, using VBA.
The body of this email look like this:
....there is the email address too
Your message did not reach some or all of the intended recipients.
Subject:Web Survey (6/11/2003)
Sent: 6/11/2003 12:00 AM
The following recipient(s) could not be reached:
'email@example.com' on 6/11/2003 12:09 AM
Unable to deliver the message due to a communications failure
The MTS-ID of the original message is: c=us;a= ;p=interim healthca;l=IHCMSX010306110408M2W1LN0R
MSEXCH:IMS:Interim HealthCare:IHC:IHCMSX01 3902 (000B09B6) Host Unknown
By the way OUTLOOK RULES DOES NOT CATCH THE BODY NEITHER.....
However after use:
objMail.SaveAs MyPath & MyFileName, olTXT
A new text file is created with the from, To, and Subject fields, not the body...
However for any other message I get the to, from, subject and body field.
Question: Is any reason why the body field is not been grabbed? However, if I do it manually trough File|SaveAs|as .txt file, the body part gets saved in the TXT file....
FOR MORE INFO PLEASE CHECK AN EXAMPLE AT:
Thanks for your help pals!
Last edited by pipodyer; July 10th, 2003 at 08:39 AM.