A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Embedded Images Stripped By Receiving Clients



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 27th 06, 09:55 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 14
Default Embedded Images Stripped By Receiving Clients

Yes and Yes.

  #2  
Old April 27th 06, 11:00 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Embedded Images Stripped By Receiving Clients

So what is different between messages created by your code and by Outlook?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

wrote in message
oups.com...
Yes and Yes.



  #3  
Old April 28th 06, 09:50 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 14
Default Embedded Images Stripped By Receiving Clients

Here is the message I'm sending that doesn't work:

HTMLheadmeta content="TX_HTML32 12.0.230.500"
name="GENERATOR"title/titlestyle type="text/css"BODY
{font-family:
'Arial';font-size: 12pt;font-weight: normal;font-style: normal;}
P.NORMAL {margin-top: 5pt;margin-bottom: 5pt;font-family: 'Times New
Roman';font-size: 12pt;font-weight: normal;font-style: normal;}
P {margin-top: 0.05pt;margin-bottom: 0.05pt;font-family:
'Arial';font-size:
12pt;font-style: normal;}
/style/headbody bgcolor="#FFFFFF" text="#000000"pspan
style="font-size:10pt;"Highimg border="0" src="cid:Image1"
width="307" height="230"
alt="[image]"/spanspan style="font-size:10pt;"Joe/spanspan
style="font-size:10pt;",/span/ppspan
style="font-size:10pt;"/span/ppspan
style="font-size:10pt;" /span/ppspan
style="font-size:10pt;"/span/ppspan
style="font-size:10pt;" /span/ppspan
style="font-family:'Microsoft Sans
Serif';font-size:8.2pt;" /span/ppspan
style="font-size:10pt;" /span/ppspan
style="font-size:10pt;"/span/ppspan
style="font-size:10pt;" /span/p/body/HTML

Here is the equivalent message generated by a different source that
does work:

HTMLHEADTITLE/TITLE
META http-equiv=Content-Type content="text/html; charset=unicode"
META content="MSHTML 6.00.2900.2180" name=GENERATOR
STYLE type=text/css BODY {font-family: 'Arial';font-size:
12pt;font-weight:
normal;font-style: normal;}
P.NORMAL {margin-top: 5pt;margin-bottom: 5pt;font-family: 'Times New
Roman';font-size: 12pt;font-weight: normal;font-style: normal;}
P {margin-top: 0.05pt;margin-bottom: 0.05pt;font-family:
'Arial';font-size:
12pt;font-style: normal;}
/STYLE
/HEAD
BODY text=#000000 bgColor=#ffffff
PSPAN style="FONT-SIZE: 10pt"High IMG height=230 alt=[image]
src="cid:f457094b-602d-42b8-917e-3ee75bff0dd1" width=307
border=0/SPANSPAN
style="FONT-SIZE: 10pt"Joe/SPANSPAN style="FONT-SIZE:
10pt",/SPAN/P
PSPAN style="FONT-SIZE: 10pt"/SPAN/P
PSPAN style="FONT-SIZE: 10pt"/SPAN /P
PSPAN style="FONT-SIZE: 10pt"/SPAN/P
PSPAN style="FONT-SIZE: 10pt"/SPAN /P
PSPAN style="FONT-SIZE: 8.2pt; FONT-FAMILY: 'Microsoft Sans
Serif'"/SPAN /P
PSPAN style="FONT-SIZE: 10pt"/SPAN /P
PSPAN style="FONT-SIZE: 10pt"/SPAN/P
PSPAN style="FONT-SIZE: 10pt"/SPAN /P/BODY/HTML

There are differences, but none that I can see that would cause the
problem.

  #4  
Old April 28th 06, 10:32 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Embedded Images Stripped By Receiving Clients

Can you try to set *exactly* the same HTML?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

wrote in message
oups.com...
Here is the message I'm sending that doesn't work:

HTMLheadmeta content="TX_HTML32 12.0.230.500"
name="GENERATOR"title/titlestyle type="text/css"BODY
{font-family:
'Arial';font-size: 12pt;font-weight: normal;font-style: normal;}
P.NORMAL {margin-top: 5pt;margin-bottom: 5pt;font-family: 'Times New
Roman';font-size: 12pt;font-weight: normal;font-style: normal;}
P {margin-top: 0.05pt;margin-bottom: 0.05pt;font-family:
'Arial';font-size:
12pt;font-style: normal;}
/style/headbody bgcolor="#FFFFFF" text="#000000"pspan
style="font-size:10pt;"Highimg border="0" src="cid:Image1"
width="307" height="230"
alt="[image]"/spanspan style="font-size:10pt;"Joe/spanspan
style="font-size:10pt;",/span/ppspan
style="font-size:10pt;"/span/ppspan
style="font-size:10pt;" /span/ppspan
style="font-size:10pt;"/span/ppspan
style="font-size:10pt;" /span/ppspan
style="font-family:'Microsoft Sans
Serif';font-size:8.2pt;" /span/ppspan
style="font-size:10pt;" /span/ppspan
style="font-size:10pt;"/span/ppspan
style="font-size:10pt;" /span/p/body/HTML

Here is the equivalent message generated by a different source that
does work:

HTMLHEADTITLE/TITLE
META http-equiv=Content-Type content="text/html; charset=unicode"
META content="MSHTML 6.00.2900.2180" name=GENERATOR
STYLE type=text/css BODY {font-family: 'Arial';font-size:
12pt;font-weight:
normal;font-style: normal;}
P.NORMAL {margin-top: 5pt;margin-bottom: 5pt;font-family: 'Times New
Roman';font-size: 12pt;font-weight: normal;font-style: normal;}
P {margin-top: 0.05pt;margin-bottom: 0.05pt;font-family:
'Arial';font-size:
12pt;font-style: normal;}
/STYLE
/HEAD
BODY text=#000000 bgColor=#ffffff
PSPAN style="FONT-SIZE: 10pt"High IMG height=230 alt=[image]
src="cid:f457094b-602d-42b8-917e-3ee75bff0dd1" width=307
border=0/SPANSPAN
style="FONT-SIZE: 10pt"Joe/SPANSPAN style="FONT-SIZE:
10pt",/SPAN/P
PSPAN style="FONT-SIZE: 10pt"/SPAN/P
PSPAN style="FONT-SIZE: 10pt"/SPAN /P
PSPAN style="FONT-SIZE: 10pt"/SPAN/P
PSPAN style="FONT-SIZE: 10pt"/SPAN /P
PSPAN style="FONT-SIZE: 8.2pt; FONT-FAMILY: 'Microsoft Sans
Serif'"/SPAN /P
PSPAN style="FONT-SIZE: 10pt"/SPAN /P
PSPAN style="FONT-SIZE: 10pt"/SPAN/P
PSPAN style="FONT-SIZE: 10pt"/SPAN /P/BODY/HTML

There are differences, but none that I can see that would cause the
problem.



  #5  
Old May 1st 06, 09:20 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 14
Default Embedded Images Stripped By Receiving Clients

I've reduced the HTML body to the simplest form possible:

IMG src=cid:image1

and still the image gets stripped. I'm setting the following
properties on the attachment:

attachment.set_Fields(0x370E001E /*content
type*/, "image/jpeg");
attachment.set_Fields(0x3712001E
/*PR_ATTACH_CONTENT_ID*/, "image1");

is there any other property that should be set?

  #6  
Old May 1st 06, 11:32 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Embedded Images Stripped By Receiving Clients

Did you try to make the attachment contents id value the same as the one
used by Outlook?
Did you compare the two messages in the Sent Items folder with OutlookSpy or
MFCMAPI?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

wrote in message
oups.com...
I've reduced the HTML body to the simplest form possible:

IMG src=cid:image1

and still the image gets stripped. I'm setting the following
properties on the attachment:

attachment.set_Fields(0x370E001E /*content
type*/, "image/jpeg");
attachment.set_Fields(0x3712001E
/*PR_ATTACH_CONTENT_ID*/, "image1");

is there any other property that should be set?



  #7  
Old May 8th 06, 05:12 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 14
Default Embedded Images Stripped By Receiving Clients

The only real difference I see is the value of the
PR_RENDERING_POSITION. It's -1 for the one that works and 1 for the
one that doesn't.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Clients does not recognize changes to user-defined views Per Koch Outlook - Using Forms 2 May 17th 06 07:06 AM
Blocked embedded images in HTML messages in OE 6 w/SP2 scotschwallenberg Outlook Express 6 April 1st 06 10:26 PM
How do I limit clients email attachment size spbembr Outlook - General Queries 1 February 16th 06 07:23 PM
Creating Calendar for all Exchange Clients James Robertson Outlook - Calandaring 5 January 13th 06 07:44 PM
Oulook Clients Keep Disconnecting from Exchange server - (HELP PLEASE) BMN Outlook - General Queries 1 January 9th 06 01:35 PM


All times are GMT +1. The time now is 01:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.