Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: HTMLBody is hidden when emailing a PDF from IE?

Geek News

HTMLBody is hidden when emailing a PDF from IE?
Stephen Corey <" lnuxguy"[ at ]community.nospam> 6/3/2006 4:11:31 PM
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???
Re: HTMLBody is hidden when emailing a PDF from IE?
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 6/3/2006 5:14:03 PM
You'd have to show the code you're using.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Stephen Corey" <" lnuxguy"[ at ]community.nospam> wrote in message
news:eSwqhhyhGHA.1000[ at ]TK2MSFTNGP04.phx.gbl...
[Quoted Text]
>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???

Re: HTMLBody is hidden when emailing a PDF from IE?
Stephen Corey <" lnuxguy"[ at ]community.nospam> 6/3/2006 8:14:03 PM
Ken Slovak - [MVP - Outlook] wrote:
[Quoted Text]
> 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.
Re: HTMLBody is hidden when emailing a PDF from IE?
Stephen Corey <" lnuxguy"[ at ]community.nospam> 6/3/2006 8:16:06 PM
Ken Slovak - [MVP - Outlook] wrote:
[Quoted Text]
> 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.
Re: HTMLBody is hidden when emailing a PDF from IE?
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 6/5/2006 12:58:57 PM
Do you see anything if you save the item?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Stephen Corey" <" lnuxguy"[ at ]community.nospam> wrote in message
news:4481ED8B.4030804[ at ]community.nospam...
[Quoted Text]
> Ken Slovak - [MVP - Outlook] wrote:
>> 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.

Re: HTMLBody is hidden when emailing a PDF from IE?
Stephen Corey <" lnuxguy"[ at ]community.nospam> 6/5/2006 2:19:16 PM
Ken Slovak - [MVP - Outlook] wrote:
[Quoted Text]
> Do you see anything if you save the item?
>

If I call Save() on the MailItem, nothing happens.
Re: HTMLBody is hidden when emailing a PDF from IE?
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 6/6/2006 1:27:57 PM
I'm out of ideas, it must be something odd with the IE interface or PDF's in
general.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Stephen Corey" <" lnuxguy"[ at ]community.nospam> wrote in message
news:OaQJIsKiGHA.1000[ at ]TK2MSFTNGP04.phx.gbl...
[Quoted Text]
> Ken Slovak - [MVP - Outlook] wrote:
>> Do you see anything if you save the item?
>>
>
> If I call Save() on the MailItem, nothing happens.

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net