HTMLBody is hidden when emailing a PDF from IE?

  • Thread starter Thread starter Stephen Corey
  • Start date Start date
S

Stephen Corey

I have a COM Addin that adds a corporate header & footer to all outgoing
external emails. I noticed that if you email a PDF from within IE, when
the COM Addin kicks off (before ANY changes are made), the .Body
property is blank. The .HTMLBody property shows this:

"<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

</BODY>
</HTML>"

I can't find the "real" body of the message. If you email a PDF any
other way (right-click from desktop, etc..) the body shows up (via the
..HTMLBody property). All other attachments seem to be fine. Only PDFs
emailed this particular way trigger the bug. What's weird is that if I
exit the COM Addin without making changes, the body shows back up. That
tells me it's somewhere in that message, but I just can't find it.

Ideas???
 
Ken said:
You'd have to show the code you're using.

I can create a new addin, and in the ItemSend event, have just this line:

MsgBox(item.HTMLBody)

That's the point I'm trying to make. The Outlook.MailItem that Outlook
passes to ItemSend already has the body hidden.
 
Ken said:
You'd have to show the code you're using.

I can create a new addin, and in the ItemSend event, have just this line:

MsgBox(item.HTMLBody)

That's the point I'm trying to make. The Outlook.MailItem that Outlook
passes to ItemSend already has the body hidden.
 
I'm out of ideas, it must be something odd with the IE interface or PDF's in
general.
 
Back
Top