Is it possible to save email body without header?

  • Thread starter Thread starter Trefor
  • Start date Start date
T

Trefor

I am using this command to save an HTML email to an HTML file, but this saves
the body with the email header.

olMail.SaveAs "c:\myfile.htm", olHTML

I can see the HTML email using

olMail.HTMLBody

but how do I save just the body no header to the file?
 
Michael,

Many thanks for you response.

This is PERFECT!! works a treat, many thanks.

Your read code may also help me with another problem. I have an email with a
..rtf attachment. I would like to Parse the file and save it with a different
name.

I presume I can save the file to a temp location, read the file to a
variable, parse the variable and write the file back with a new name?
 
Michael,

Many thanks for you response.

This worked perfectly, excellent in fact.

I have a another problem and wondered wether your read code would help me. I
am trying to Parse an .rtf attachment and I though I could save the file,
Parse the file using after using your read code and then saving it. Of is
there a better way to Parse an .rtf attachment?
 
Probably the best approach would be to save the attachment to the file
system and then open it in Word to do the actual parsing.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


Am Sun, 6 Sep 2009 02:59:01 -0700 schrieb Trefor:
 
Sue,

Many thanks for your reply. Thats exactly what I did, I must have read your
thoughts ;)

Thanks.
 
Back
Top