HTMLBody is hidden when emailing a PDF from IE?

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???
 
S

Stephen Corey

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.
 
S

Stephen Corey

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.
 
K

Ken Slovak - [MVP - Outlook]

I'm out of ideas, it must be something odd with the IE interface or PDF's in
general.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top