Outlook 2007 automatically renaming .GIF image to .PNG

Tech-Archive recommends: Speed Up your PC by fixing your registry



I am experiencing an interesting feature in that Outlook 2007 appears to
rename my .gif attachment to .png, making the content undisplayable. The
same code works without issue against Outlook 2003. Does anyone know if this
is intentional and documented?

Some (abbreviated!) background, for the curious:

I have written a module that tests so far perfectly against Outlook 2003 and
non-Outlook systems. The module finds the users signature files via the
registry, parses the signature, and links in the referenced attached images.

I am now testing this on a shiny new machine with Office 2007 installed as
part of tests against other versions of Office.

I created a signature in Outlook 2007, and attached a .gif image to it.

My program found the signature file, parsed it, attached the referenced .gif
image, and then assembled the combined message and signature content in the
PR_HTML message property.

The result:
* The image doesn't display (at all) in the sender's Outlook, I just get a
small X (image missing) icon.
* In gmail, it shows the image as a white rectangle, and an attachment with
the name image001.png.
* In the receiving Outlook (2003), the attachment doesn't appear (hidden)
and a white rectangle appears in the message where it should have been.
* In outlookspy, I see that the CID in PR_ATTACH_CONTENT_ID and PR_HTML
match, however they have been changed (they were something like
image001.gif@xxxxxxxxxxxxxxxx and are now something like
image001.png@xxxxxxxxxxxxxxxx where 9 is my home-made uid, and 8 is
outlook's).
* If I send a test message through Outlook, the message arrives at the
destination as a .GIF and is displayed correctly.

If it helps, I can attach the html that I submit to PR_HTML, and the html
that Outlook seems to have changed it to.

Any thoughts will be much appreciated.

Cheers,

Ben


.



Relevant Pages

  • Re: VBScript Signature in Outlook from TechNet Magazine?
    ... however in HTML it always returns a new full new paragraph. ... Sue Mosher, Outlook MVP ... "objSelection.TypeParagraph" the signature comes out with: ... The script doesn't need to be set up in Outlook. ...
    (microsoft.public.office.developer.outlook.vba)
  • Re: VBScript Signature in Outlook from TechNet Magazine?
    ... would never work in a Word document because it means text, not an HTML tag, to the Word object model. ... Sue Mosher, Outlook MVP ... "objSelection.TypeParagraph" the signature comes out with: ... The script doesn't need to be set up in Outlook. ...
    (microsoft.public.office.developer.outlook.vba)
  • Re: Outlook 2007 automatically renaming .GIF image to .PNG
    ... When the message was sent, Outlook for some reason replaced the missing ... I create a new temporary message with an inline image in the signature. ... I clear Automatically perform basic compression. ... The GIF I'm attaching to my message is still ...
    (microsoft.public.win32.programmer.messaging)
  • Outlook Script for Reply Button
    ... We have created a custom Outlook corporate signature in HTML format. ... Set GetCurrentItem = objApp.ActiveExplorer.Selection.Item ...
    (microsoft.public.scripting.vbscript)
  • HTML Signature in Outlook 2000
    ... I have created an html page that I am using as a signature in Outlook ... Outlook usually single spaces, which I what I want it to do. ...
    (microsoft.public.outlook.general)