Sending Formatted text through MAPI
-
Hi All, In my app I need to send e-mail directly. I use Simle MAPI for that and it works fine. The problem is that want to send formatted text. When I tried to set the message text to HTML text some e-mail programs (Like Eudora Pro) rendered it fine. However other e-mail programs (Outlook and Outlook Express) do not render it and just show the html source. I know that there is a way to send formatted text since Word does it. I already called Microsoft Tech Support and they couldn't give me an answer. Can anyone help? Thans, Eli.
-
Hi All, In my app I need to send e-mail directly. I use Simle MAPI for that and it works fine. The problem is that want to send formatted text. When I tried to set the message text to HTML text some e-mail programs (Like Eudora Pro) rendered it fine. However other e-mail programs (Outlook and Outlook Express) do not render it and just show the html source. I know that there is a way to send formatted text since Word does it. I already called Microsoft Tech Support and they couldn't give me an answer. Can anyone help? Thans, Eli.
Hi Eli,
you cannot send formatted text with Simple MAPI by default (although some mail readers parse it correctly), because you cannot specify the format of the content in Simple MAPI. With Extended MAPI you can specify the encoding of the message body (text/HTML or text/RTF). For a sample, see Microsoft's MSDN online (search.microsoft.com/us/dev/) and search for article "Q216344". Willi ================== The original message was: Hi All,In my app I need to send e-mail directly.
I use Simle MAPI for that and it works fine.The problem is that want to send formatted text.
When I tried to set the message text to HTML text some e-mail programs (Like Eudora Pro) rendered it fine.However other e-mail programs (Outlook and Outlook Express) do not render it and just show the html source.
I know that there is a way to send formatted text since Word does it.
I already called Microsoft Tech Support and they couldn't give me an answer.
Can anyone help?
Thans,
Eli.