Forum Discussion

tcrompton's avatar
tcrompton
New Contributor
13 years ago

How do I send the MHTML or HTML results as the body of an email.

I've followed the directions as per these instructions. I am able to receive the email and set the body to plain text, but I can't figure out how to make the body of the email the same as the MHTML file (or HTML file). I've tried the CDO.Message.CreateMHTMLBody method with the HTM file to no avail.

2 Replies

  • tcrompton's avatar
    tcrompton
    New Contributor
    I'd delete this post if I could figure out how. I've realized that the MHTML file that is exported with Log.SaveResultsAs (which is what I want to send as the body) extensively uses JavaScript. Most mail clients don't seem to allow that.

  • Hi Tyler,


     


    The HTMLBody property is used in the sample you mentioned to set the body in the HTML format. Have you tried using it?