how to send plain text message with MAPI?

  • Thread starter Thread starter Mark Beiley
  • Start date Start date
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
 
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
 
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
 
Back
Top