Do you mean add an icon to the message body that would open the embedded
message when clicked?
Or add the embedded message as a regular attatchment without an icon in the
message body?
What is the source message format (MIME, etc)?
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
> The body source above from Outlook client, when I view the message
> with embedded image (sent from the other client to Outlook)
[quoted text clipped - 11 lines]
> Regards,
> MA
MA - 31 Oct 2007 20:09 GMT
I want to create a HTML message with embedded image.
I have followed the sample code (http://www.dimastr.com/redemption/
objects.htm#examples) but unable to find the SafeMailItem.Fields
perperties.
Anyway, the following code seems does the job:
-----------------------------------------------------------------
RDOAttachment attach = msg.Attachments.Add(@"C:\Temp\gwhome.gif",
Outlook.OlAttachmentType.olByValue, "", "gwhome.gif");
try
{
attach.set_Fields(923664414, "image/gif");
attach.set_Fields(923926558, "ZYXXIKOOYRKF.gwhome.gif");
attach.set_Fields(2147352587, true);
}
finally
{
Marshal.ReleaseComObject(attach);
attach = null;
}
msg.HTMLBody = "test <STRONG>message</STRONG> body.<IMG align=baseline
border=0 hspace=0 src=cid:ZYXXIKOOYRKF.gwhome.gif>";
msg.Save();
-------------------------------------------------------------
Is there any documentation available about the field number (e.g.
923664414, 2147352587, etc) and what field its represent?
Cheers,
MA
Dmitry Streblechenko - 31 Oct 2007 21:29 GMT
PR_ATTACH_MIME_TAG, PR_ATTACHMENT_HIDDEN
Look at the message with MFCMAPI or OutlookSpy (click IMessage)
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
>I want to create a HTML message with embedded image.
>
[quoted text clipped - 28 lines]
> Cheers,
> MA