how to send plain text message with MAPI?

M

Mark Beiley

My add-in uses MAPI's SubmitMessage() to send emails. The problem I have is
that
if the message is a plain text message it always gets sent as a multi-part
message with both a
text/plain and text/html content-type instead of just a plain text message.
If I replace the
SubmitMessage() with just using OOM's Send() function then it works as
desired, just
sending the plain text version.

I can't just switch to using Send() because that triggers the security alert
in Outlook. Does
anybody know why SubmitMessage() always sends in the multi-part format, or
how to
prevent it from doing so?

Thanks,
Mark
http://www.email-announcer.com
 
D

Dmitry Streblechenko

Did you try to set the PR_InetMailOverrideFormat and PR_MSG_EDITOR_FORMAT
properties?

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

Mark Beiley

Why, no I didn't... :) I confirmed with OutlookSpy that setting
PR_MSG_EDITOR_FORMAT to 1 fixed my problem! Thank you.

Is there a list of all these PR_* properties and their values documented
somewhere?

Thanks,
Mark
http://www.email-announcer.com
 
D

Dmitry Streblechenko

Nope, no list... Especially for these tags that were never meant to be
documenbted.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top