Help!

html content of mail

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Program Add-Ins RSS
Next:  Klein 602-6-INS 6-Inch Insulated Keystone-Tip ¿ ..  
Author Message
Ashish
External


Since: May 22, 2009
Posts: 1



PostPosted: Fri May 22, 2009 5:10 am    Post subject: html content of mail
Archived from groups: microsoft>public>outlook>program_addins (more info?)

If i mail contains embeded image and we open that mail in outlook addin then
embeded image does not display in body of mail It's in Attachments pane.
To display embeded image in mail body(not in attachments pane) which
property we need to set?
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Fri May 22, 2009 9:17 am    Post subject: Re: html content of mail [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In general an embedded image will always be an attachment, unless it's a
direct URL link to an image file located somewhere. The HTML reference will
look something like this:

<IMG src="cid:124260513@22052009-2198">

where that cid will match the PR_ATTACH_CONTENT_ID (0x3712001E or
"urn:schemas:mailheader:content-id") property value. The PR_ATTACH_DATA_BIN
property (0x37010102 or
"http://schemas.microsoft.com/mapi/proptag/0x37010102") will contain the
binary content of the image file.

In addition, to hide the attachment paperclip in the email the property
HideAttachments
("http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/8514000B")
is set to true. That property tag in MAPI terms would be :
int tag = GetIDsFromNames("{00062008-0000-0000-C000-000000000046}", 0x8514)
| PT_BOOLEAN.

The HideAttachments property is set on the mail item, not on the attachment.

For direct links the HTML would look something like this:

<img src="http://image.foobar.com/images/logo_200x91.gif" width="200"
height="91" alt="New Foobar" border="0">

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ashish" <akohli_2004.TakeThisOut@hotmail.com> wrote in message
news:uAajvar2JHA.1416@TK2MSFTNGP04.phx.gbl...
> If i mail contains embeded image and we open that mail in outlook addin
> then embeded image does not display in body of mail It's in Attachments
> pane.
> To display embeded image in mail body(not in attachments pane) which
> property we need to set?
>
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Program Add-Ins All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum