![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Yes and Yes.
|
#2
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |