Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop Exchange from automatically converting plain text emails to HTML?

I've set up an Exchange 2003 mailbox for emails that will be parsed by my code. The emails are sent as plain text and my code expects to receive them as plain text. However, it appears that Exchange is automatically converting them to HTML. How do I stop it from doing that and just receive the email the way it was sent?

The reason I believe it's Exchange doing the conversion is because the received email looks like this:

<HTML>
<HEAD>
  <META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
(then the actual contents, but with HTML markup)
</BODY>
</HTML>
like image 941
EMP Avatar asked Nov 05 '22 21:11

EMP


2 Answers

I think in the settings for the POP virtual server, there is an option for overriding the MIME encoding of the messages, where you can specify text, html, or both.

In Exchange System Manager:

Servers -> "YOUR SERVER" -> Protocols -> POP3 -> Virtual Server -> Properties -> Message Format tab

like image 134
great_llama Avatar answered Nov 15 '22 08:11

great_llama


Before setting up all the rules as per the next section, it is worth confirming this option on your Exchange server, if you have access.

Start the Exchange System Manager program.

Expand “Global Settings”, and then click “Internet Message Formats”.

In the right pane, double-click your Internet message formats object.

Now Click Advanced then Set Rich Text Editor Radio Button to Never. Press Ok.

I found the answer using:

http://help.affinitylive.com/setup/automatic-email-capture/exchange-2003/

Let us know if this fixes it.

like image 29
Frankenmint Avatar answered Nov 15 '22 07:11

Frankenmint