HTML Mails - body property

  • Thread starter Thread starter Peter Ramsebner
  • Start date Start date
P

Peter Ramsebner

Hi all,

i have to import HTML Mails which are sent from an internet platform.
I use the body property to get the mail body.
Now i have the problem, that the text which returns the body property is not
the mail content!
It seems to be the message content of another type of messages which also
are sent by the same sender but to another receipients.

On some Outlook Clients it work, on anohters not.
It seems that one Outlook Client generate the body property from the html
source and another directly (from what?)

My questions are:
- Is it possible that HTML messages contains the html source and
additionally the text?
- Is this an inconsistency of the mail?
- Is there a possibility to save the message in a binary file to explore it
with a hex-editor?


Thanks for help

Peter
 
The HTMLBody property will give you what the recipient sees.

In my case not!!!
 
What do you see then? Have you compared it to the raw message (try receiving
from the same account with Outlook Express)?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
What do you see then?
In Outlook 2000 i see what i expect. But with the body property i am getting
anohter thing (its the content of another mail the sender had sent to
another recipient -> i know its confusing).
Have you compared it to the raw message (try receiving from the same
account with Outlook Express)?
Wat do yoy mean with raw message? I will try it with Outlook Express.


PS: The problem is that the sender of this mails is ignoring his
responsability. He says that his mails are correct and there have to be a
problem with the recieving computers.

Peter
 
Sorry,
yes with the HTMLBody i will get what i see.
For HTML Mails, the Body property isn't allowed to use?
 
Read my reply again: You need to be using HTMLBody, not Body.

Outlook Express allows you to read the raw message, so you can see the HTML
and plain text parts.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
You can use either one, but they refer to different parts of the message.
What the user sees from an HTML message is HTMLBody.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
You can use either one, but they refer to different parts of the message.
What the user sees from an HTML message is HTMLBody.

ok thats what i am talking of.
In my case the Body property does not return the content (in textformat) of
this mail! It returns a text which was originally content of another mail! A
mail which was sent from the same sender but to another person.

It looks like if there are 2 emails in one; HTMLBody returns one - Body
returns the other content.
--> This is a inconsistency of the email!

Is there a explanation for this behaviour?

Are there possibilities to examine such email?


Thanks, Peter
 
thanks, Peter

Sue Mosher said:
No, that's not an inconsistency. HTML messages are not required to have
the same information in the HTML and plain text parts.

As I suggested, if you want to see the raw message, Outlook Express makes
it easy.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Peter Ramsebner said:
You can use either one, but they refer to different parts of the
message. What the user sees from an HTML message is HTMLBody.

ok thats what i am talking of.
In my case the Body property does not return the content (in textformat)
of this mail! It returns a text which was originally content of another
mail! A mail which was sent from the same sender but to another person.

It looks like if there are 2 emails in one; HTMLBody returns one - Body
returns the other content.
--> This is a inconsistency of the email!

Is there a explanation for this behaviour?

Are there possibilities to examine such email?


Thanks, Peter


--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Sorry,
yes with the HTMLBody i will get what i see.
For HTML Mails, the Body property isn't allowed to use?



"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el
mensaje Read my reply again: You need to be using HTMLBody, not Body.



What do you see then?
In Outlook 2000 i see what i expect. But with the body property i am
getting anohter thing (its the content of another mail the sender had
sent to another recipient -> i know its confusing).


i have to import HTML Mails which are sent from an internet
platform.
I use the body property to get the mail body.
Now i have the problem, that the text which returns the body
property is not the mail content!
It seems to be the message content of another type of messages
which also are sent by the same sender but to another
receipients.

On some Outlook Clients it work, on anohters not.
It seems that one Outlook Client generate the body property from
the html source and another directly (from what?)

My questions are:
- Is it possible that HTML messages contains the html source and
additionally the text?
- Is this an inconsistency of the mail?
- Is there a possibility to save the message in a binary file to
explore it with a hex-editor?
 
No, that's not an inconsistency. HTML messages are not required to have the
same information in the HTML and plain text parts.

As I suggested, if you want to see the raw message, Outlook Express makes it
easy.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Peter Ramsebner said:
You can use either one, but they refer to different parts of the message.
What the user sees from an HTML message is HTMLBody.

ok thats what i am talking of.
In my case the Body property does not return the content (in textformat)
of this mail! It returns a text which was originally content of another
mail! A mail which was sent from the same sender but to another person.

It looks like if there are 2 emails in one; HTMLBody returns one - Body
returns the other content.
--> This is a inconsistency of the email!

Is there a explanation for this behaviour?

Are there possibilities to examine such email?


Thanks, Peter


--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Peter Ramsebner said:
Sorry,
yes with the HTMLBody i will get what i see.
For HTML Mails, the Body property isn't allowed to use?



"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el
mensaje Read my reply again: You need to be using HTMLBody, not Body.



What do you see then?
In Outlook 2000 i see what i expect. But with the body property i am
getting anohter thing (its the content of another mail the sender had
sent to another recipient -> i know its confusing).


i have to import HTML Mails which are sent from an internet
platform.
I use the body property to get the mail body.
Now i have the problem, that the text which returns the body
property is not the mail content!
It seems to be the message content of another type of messages
which also are sent by the same sender but to another receipients.

On some Outlook Clients it work, on anohters not.
It seems that one Outlook Client generate the body property from
the html source and another directly (from what?)

My questions are:
- Is it possible that HTML messages contains the html source and
additionally the text?
- Is this an inconsistency of the mail?
- Is there a possibility to save the message in a binary file to
explore it with a hex-editor?
 
Just out of curiosity, if you look at the message using MdbView or
OutlookSpy (click IMessage button), what do you see in PR_BODY, PR_HTML and
PR_RTF_COMPRESSED?

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


Peter Ramsebner said:
You can use either one, but they refer to different parts of the message.
What the user sees from an HTML message is HTMLBody.

ok thats what i am talking of.
In my case the Body property does not return the content (in textformat) of
this mail! It returns a text which was originally content of another mail! A
mail which was sent from the same sender but to another person.

It looks like if there are 2 emails in one; HTMLBody returns one - Body
returns the other content.
--> This is a inconsistency of the email!

Is there a explanation for this behaviour?

Are there possibilities to examine such email?


Thanks, Peter


--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Peter Ramsebner said:
Sorry,
yes with the HTMLBody i will get what i see.
For HTML Mails, the Body property isn't allowed to use?



"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el
mensaje Read my reply again: You need to be using HTMLBody, not Body.



What do you see then?
In Outlook 2000 i see what i expect. But with the body property i am
getting anohter thing (its the content of another mail the sender had
sent to another recipient -> i know its confusing).


i have to import HTML Mails which are sent from an internet
platform.
I use the body property to get the mail body.
Now i have the problem, that the text which returns the body
property is not the mail content!
It seems to be the message content of another type of messages
which also are sent by the same sender but to another receipients.

On some Outlook Clients it work, on anohters not.
It seems that one Outlook Client generate the body property from
the html source and another directly (from what?)

My questions are:
- Is it possible that HTML messages contains the html source and
additionally the text?
- Is this an inconsistency of the mail?
- Is there a possibility to save the message in a binary file to
explore it with a hex-editor?
 
OutlookSpy (click IMessage button), what do you see in PR_BODY, PR_HTML
and
PR_RTF_COMPRESSED?
PR_BODY and PR_HTML contains different things
i couldn't find PR_RTF_COMPRESSED ?

Peter

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


Peter Ramsebner said:
You can use either one, but they refer to different parts of the message.
What the user sees from an HTML message is HTMLBody.

ok thats what i am talking of.
In my case the Body property does not return the content (in textformat) of
this mail! It returns a text which was originally content of another
mail! A
mail which was sent from the same sender but to another person.

It looks like if there are 2 emails in one; HTMLBody returns one - Body
returns the other content.
--> This is a inconsistency of the email!

Is there a explanation for this behaviour?

Are there possibilities to examine such email?


Thanks, Peter


--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Sorry,
yes with the HTMLBody i will get what i see.
For HTML Mails, the Body property isn't allowed to use?



"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el
mensaje Read my reply again: You need to be using HTMLBody, not Body.



What do you see then?
In Outlook 2000 i see what i expect. But with the body property i am
getting anohter thing (its the content of another mail the sender
had
sent to another recipient -> i know its confusing).


i have to import HTML Mails which are sent from an internet
platform.
I use the body property to get the mail body.
Now i have the problem, that the text which returns the body
property is not the mail content!
It seems to be the message content of another type of messages
which also are sent by the same sender but to another receipients.

On some Outlook Clients it work, on anohters not.
It seems that one Outlook Client generate the body property from
the html source and another directly (from what?)

My questions are:
- Is it possible that HTML messages contains the html source and
additionally the text?
- Is this an inconsistency of the mail?
- Is there a possibility to save the message in a binary file to
explore it with a hex-editor?
 
What version of Outlook are you using?

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


Peter Ramsebner said:
OutlookSpy (click IMessage button), what do you see in PR_BODY, PR_HTML
and
PR_RTF_COMPRESSED?
PR_BODY and PR_HTML contains different things
i couldn't find PR_RTF_COMPRESSED ?

Peter

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


Peter Ramsebner said:
You can use either one, but they refer to different parts of the message.
What the user sees from an HTML message is HTMLBody.

ok thats what i am talking of.
In my case the Body property does not return the content (in
textformat)
of
this mail! It returns a text which was originally content of another
mail! A
mail which was sent from the same sender but to another person.

It looks like if there are 2 emails in one; HTMLBody returns one - Body
returns the other content.
--> This is a inconsistency of the email!

Is there a explanation for this behaviour?

Are there possibilities to examine such email?


Thanks, Peter




--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Sorry,
yes with the HTMLBody i will get what i see.
For HTML Mails, the Body property isn't allowed to use?



"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el
mensaje Read my reply again: You need to be using HTMLBody, not Body.



What do you see then?
In Outlook 2000 i see what i expect. But with the body property i am
getting anohter thing (its the content of another mail the sender
had
sent to another recipient -> i know its confusing).


i have to import HTML Mails which are sent from an internet
platform.
I use the body property to get the mail body.
Now i have the problem, that the text which returns the body
property is not the mail content!
It seems to be the message content of another type of messages
which also are sent by the same sender but to another receipients.

On some Outlook Clients it work, on anohters not.
It seems that one Outlook Client generate the body property from
the html source and another directly (from what?)

My questions are:
- Is it possible that HTML messages contains the html source and
additionally the text?
- Is this an inconsistency of the mail?
- Is there a possibility to save the message in a binary file to
explore it with a hex-editor?
 
What version of Outlook are you using?
2000


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


Peter Ramsebner said:
OutlookSpy (click IMessage button), what do you see in PR_BODY, PR_HTML
and
PR_RTF_COMPRESSED?
PR_BODY and PR_HTML contains different things
i couldn't find PR_RTF_COMPRESSED ?

Peter

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


You can use either one, but they refer to different parts of the
message.
What the user sees from an HTML message is HTMLBody.

ok thats what i am talking of.
In my case the Body property does not return the content (in textformat)
of
this mail! It returns a text which was originally content of another
mail!
A
mail which was sent from the same sender but to another person.

It looks like if there are 2 emails in one; HTMLBody returns one -
Body
returns the other content.
--> This is a inconsistency of the email!

Is there a explanation for this behaviour?

Are there possibilities to examine such email?


Thanks, Peter




--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Sorry,
yes with the HTMLBody i will get what i see.
For HTML Mails, the Body property isn't allowed to use?



"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el
mensaje Read my reply again: You need to be using HTMLBody, not Body.



What do you see then?
In Outlook 2000 i see what i expect. But with the body property i am
getting anohter thing (its the content of another mail the sender
had
sent to another recipient -> i know its confusing).


i have to import HTML Mails which are sent from an internet
platform.
I use the body property to get the mail body.
Now i have the problem, that the text which returns the body
property is not the mail content!
It seems to be the message content of another type of
messages
which also are sent by the same sender but to another
receipients.

On some Outlook Clients it work, on anohters not.
It seems that one Outlook Client generate the body property from
the html source and another directly (from what?)

My questions are:
- Is it possible that HTML messages contains the html source and
additionally the text?
- Is this an inconsistency of the mail?
- Is there a possibility to save the message in a binary file to
explore it with a hex-editor?
 
I bet it is installed in the IMO mode (see Hep|About), right? Usually
Outlook *only* uses PR_RTF_COMPRESSED for both plain and HTML body (even
though plain text body is always avaliable in PR_BODY). IMO mode is the only
exception - it does not use PR_RTF_COMPRESSED and it looks like it also uses
PR_BODY when asked for the plain text body.

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


Peter Ramsebner said:
What version of Outlook are you using? 2000




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


Peter Ramsebner said:
OutlookSpy (click IMessage button), what do you see in PR_BODY, PR_HTML
and
PR_RTF_COMPRESSED?
PR_BODY and PR_HTML contains different things
i couldn't find PR_RTF_COMPRESSED ?

Peter



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


You can use either one, but they refer to different parts of the
message.
What the user sees from an HTML message is HTMLBody.

ok thats what i am talking of.
In my case the Body property does not return the content (in textformat)
of
this mail! It returns a text which was originally content of another
mail!
A
mail which was sent from the same sender but to another person.

It looks like if there are 2 emails in one; HTMLBody returns one -
Body
returns the other content.
--> This is a inconsistency of the email!

Is there a explanation for this behaviour?

Are there possibilities to examine such email?


Thanks, Peter




--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Sorry,
yes with the HTMLBody i will get what i see.
For HTML Mails, the Body property isn't allowed to use?



"Sue Mosher [MVP-Outlook]" <[email protected]> escribió en el
mensaje Read my reply again: You need to be using HTMLBody, not Body.



What do you see then?
In Outlook 2000 i see what i expect. But with the body property
i
am
getting anohter thing (its the content of another mail the sender
had
sent to another recipient -> i know its confusing).


i have to import HTML Mails which are sent from an internet
platform.
I use the body property to get the mail body.
Now i have the problem, that the text which returns the body
property is not the mail content!
It seems to be the message content of another type of
messages
which also are sent by the same sender but to another
receipients.

On some Outlook Clients it work, on anohters not.
It seems that one Outlook Client generate the body property from
the html source and another directly (from what?)

My questions are:
- Is it possible that HTML messages contains the html
source
and
additionally the text?
- Is this an inconsistency of the mail?
- Is there a possibility to save the message in a binary
file
to
explore it with a hex-editor?
 
Back
Top