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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to reconstitute message with embedded image



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 29th 07, 10:23 AM posted to microsoft.public.outlook.program_vba
MA[_2_]
external usenet poster
 
Posts: 47
Default How to reconstitute message with embedded image

Hi,

I want to reconstitute a message from another client (Eudora,
GroupWise) to Outlook. The original message contains a embedded image
inside the message body. See below the message source in Outlook.

The body has the reference of "cid:ZYXXIKOOYRKF.home.gif". However, I
can not see any attachments. Is it a system/hidden attachments?

I need to reconstitute this message. How can I add the embedded image
inside the body?

---------------------------------------------
HTMLHEAD
META http-equiv=Content-Type content="text/html; charset=utf-8"
META content="MSHTML 6.00.6000.16544" name=GENERATOR/HEAD
BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma"
DIVTest message./DIV
DIVIMG alt="" hspace=0 src="cid:ZYXXIKOOYRKF.home.gif"
align=baseline border=0/DIV
/BODY/HTML
-----------------------------------------------

BTW, I am using the Redemption to create the message in Outlook.

Hope it make sense. Thanks in advance for your suggestions.

Regards,
MA

  #2  
Old October 29th 07, 04:58 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to reconstitute message with embedded image

"I can not see any attachments" - what do you mean by that? Where/how do you
look for it?

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

"MA" wrote in message
ps.com...
Hi,

I want to reconstitute a message from another client (Eudora,
GroupWise) to Outlook. The original message contains a embedded image
inside the message body. See below the message source in Outlook.

The body has the reference of "cid:ZYXXIKOOYRKF.home.gif". However, I
can not see any attachments. Is it a system/hidden attachments?

I need to reconstitute this message. How can I add the embedded image
inside the body?

---------------------------------------------
HTMLHEAD
META http-equiv=Content-Type content="text/html; charset=utf-8"
META content="MSHTML 6.00.6000.16544" name=GENERATOR/HEAD
BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma"
DIVTest message./DIV
DIVIMG alt="" hspace=0 src="cid:ZYXXIKOOYRKF.home.gif"
align=baseline border=0/DIV
/BODY/HTML
-----------------------------------------------

BTW, I am using the Redemption to create the message in Outlook.

Hope it make sense. Thanks in advance for your suggestions.

Regards,
MA



  #3  
Old October 30th 07, 12:16 AM posted to microsoft.public.outlook.program_vba
MA[_2_]
external usenet poster
 
Posts: 47
Default How to reconstitute message with embedded image

The body source above from Outlook client, when I view the message
with embedded image (sent from the other client to Outlook)

I will try to explain the situation:
The original message from other client has a embedded image inside the
message body and I have access to the image. Now I want to recreate
the message in Outlook with the embedded image inside the body.

You can see the screen-shot of the original message: http://screencast.com/t/8qBaR4qnx

How can I add the embedded image inside the Outlook message body?

Regards,
MA

  #4  
Old October 30th 07, 05:34 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to reconstitute message with embedded image

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

"MA" wrote in message
ups.com...
The body source above from Outlook client, when I view the message
with embedded image (sent from the other client to Outlook)

I will try to explain the situation:
The original message from other client has a embedded image inside the
message body and I have access to the image. Now I want to recreate
the message in Outlook with the embedded image inside the body.

You can see the screen-shot of the original message:
http://screencast.com/t/8qBaR4qnx

How can I add the embedded image inside the Outlook message body?

Regards,
MA



  #5  
Old October 31st 07, 07:09 PM posted to microsoft.public.outlook.program_vba
MA[_2_]
external usenet poster
 
Posts: 47
Default How to reconstitute message with embedded image

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 = ",
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 STRONGmessage/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

  #6  
Old October 31st 07, 08:29 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to reconstitute message with embedded image

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
and MAPI Developer Tool
"MA" wrote in message
ups.com...
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 = ",
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 STRONGmessage/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



 




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
Embedded image moved to file problem Yobbo Outlook - General Queries 1 June 6th 07 07:58 PM
Image in message body instead of attached MSNews Outlook - General Queries 3 April 13th 07 08:46 PM
Outlook 2000 mailbox cannot view embedded text in message Andy S. Outlook - General Queries 2 July 6th 06 09:53 PM
Scan image into message tk Outlook - General Queries 2 May 19th 06 11:46 PM
Embedded image in email - PCX file extension Glyn Elrod Outlook Express 27 February 13th 06 04:51 PM


All times are GMT +1. The time now is 10:32 AM.


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.