html content of mail

Status
Not open for further replies.
A

Ashish

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?
 
K

Ken Slovak - [MVP - Outlook]

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"

"Ashish" <akohli_2004@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?
>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
Z alter the timeout for how long outlook looks for a content-server on an HTML-email? Using Outlook 5
J Outlook 2016 Can't display some embedded HTML images in Outlook 2016 Using Outlook 2
S HTML Code Embedded in String Within Open Outlook Email Preventing Replace(Application.ActiveInspector.CurrentItem.HTMLBody From Working Outlook VBA and Custom Forms 4
D Outlook 2016 64bit, Cannot Save in 'HTML', format Using Outlook 1
K Outlook adds space to rows in HTML email signatures viewed on mobile Using Outlook 1
S HTML to Plain Text Macro - Help Outlook VBA and Custom Forms 1
M HTML email signature in Outlook Using Outlook 3
B Outlook 2016 Unable to view images or logos on the outlook 2016 emails the same html code works well when i use outlook 2010 Using Outlook 0
I Outlook 2003 shows html code when To: field is empty Using Outlook 7
B Programmatically force html send and insert clipboard contents into body Outlook VBA and Custom Forms 0
S Change VBA script to send HTML email instead of text Outlook VBA and Custom Forms 3
U HTML Task Alternate Home Page View Control Using Outlook 3
D Custom form with html hyperlink Outlook VBA and Custom Forms 7
D Keep Original html body when forwarding an email Outlook VBA and Custom Forms 7
S Emails Configured As HTML But Sent As Plain Text Using Outlook 13
D create an html table in outlook custom form 2010 using vba in MsAccess Outlook VBA and Custom Forms 7
George Simpson "Switch to HTML" in Outlook 2016 notes field Using Outlook 1
H Search and delete part of a link inside HTML body message Outlook VBA and Custom Forms 2
S Outlook 2013 doesn't download html messages Using Outlook 0
A How can I load a HTML template into the WordEditor? Outlook VBA and Custom Forms 3
cabinet guy permanent response in html Using Outlook 1
C Signatures in HTML emails Using Outlook 5
I Outlook 2013 Appointments not in HTML Using Outlook.com accounts in Outlook 2
B Replies never HTML Using Outlook 2
L Outlook 2002: HTML Emails Will Not Print: Please Help Using Outlook 0
Diane Poremsky Outlook crashes when viewing HTML Messages Using Outlook 0
Diane Poremsky Create a New Message using an HTML File or Stationery Using Outlook 0
V incorrect html signature printed Using Outlook 2
Diane Poremsky Create a New Message using an HTML File or Stationery Using Outlook 0
Y HTML Emails Using Outlook 1
A Lync meeting in outlook lose HTML formatting Using Outlook 3
C Outllok 2010 (14.0.7015.1000 (32bit) converts html mail to rich text when move Using Outlook 1
T HTML email for internal mesages and Text only for External? Using Outlook 1
C In need of VBA code to read / parse HTML - Outlook emails Using Outlook 0
M Unable to read HTML Using Outlook 2
V Name of attachment in replies (HTML) - possible?? Using Outlook 12
A BCM 2010 converts html e-mails to plain text BCM (Business Contact Manager) 1
D Saving outlook emails in html and attachments Using Outlook 4
T Forcing HTML for replies in Outlook 2013 Using Outlook 4
M HTML mails apprearing broken in outlook 2013 Using Outlook 5
T Html tags in Message body Using Outlook 1
R OL2010; How to ALWAYS Reply/Forward using HTML? Using Outlook 1
J Outlook is not parsing html email, unreadable and attachment not decoded Using Outlook 1
A Calendar to Web HTML - Multiple Files Using Outlook 1
S HTML Contents of an email Jumbled in Outlook 2010 Client Using Outlook 5
F "MSG" type attachments are stripped away when senand previewed with HTML tags. Using Outlook 3
C Save as HTML for multiple emails Using Outlook 1
G No word wrap in HTML email. Using Outlook 8
M Mail in HTML format can't be sent if url or number is in the body Outlook 2010 Using Outlook 2
O Exchange 2003 displaying HTML emails as having attachments Exchange Server Administration 7

Similar threads

Top