I am sending a HTML email to my windows service - evey email that comes in says "NO PLAIN TEXT MESSAGE BODY FOUND " and the original is attached (html email) - why? Shouldnt I be able to read encoded html emails?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The weird thing is that at some point - the email was coming over with at least the comment/email body stripped of HTML tags and the original html email attached as text.html - not it is just bypassing the html strip process and attaching it. Or in some cases - it is including the html in the email body just not decoded… Just a bunch of html in the body of the email notice and in the comment field…
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
btnet_service_exe.config has a setting for capturing the raw text of an incoming message and dumping it to a file: "MessageOutputFile". The file is what I need to see to investigate the problem.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
+OK
Received: from mx01.solcon.nl () by ms1.gvdongen.local with Microsoft SMTPSVC(6.0.3790.4675);
Fri, 5 Nov 2010 15:20:39 +0100
Received: from (helo=mailrbl02.solcon.nl)
by mx01.solcon.nl with esmtp (Exim 4.69)
(envelope-from <helpdesk@artsystems.nl>)
id 1PEN9m-0003yE-Dx
for helpdesk@vandongen.eu; Fri, 05 Nov 2010 15:20:42 +0100
Received: from (helo=mail-ww0-f46.google.com)
by mailrbl02.solcon.nl with esmtp (Exim 4.71)
(envelope-from <helpdesk@artsystems.nl>)
id 1PEN9l-0000GS-DT
for helpdesk@vandongen.eu; Fri, 05 Nov 2010 15:20:41 +0100
Received: by wwd20 with SMTP id 20so3595663wwd.27
for <helpdesk@vandongen.eu>; Fri, 05 Nov 2010 07:20:41 -0700 (PDT)
Received: by 10.216.70.8 with SMTP id o8mr1138582wed.24.1288966841563;
Fri, 05 Nov 2010 07:20:41 -0700 (PDT)
Received: from SBEHEER (D4B27342.static.ziggozakelijk.nl )
by mx.google.com with ESMTPS id x23sm864021weq.10.2010.11.05.07.20.40
(version=TLSv1/SSLv3 cipher=RC4-MD5);
Fri, 05 Nov 2010 07:20:40 -0700 (PDT)
Message-ID: <4cd412b8.17edd80a.2944.37a2@mx.google.com>
Sensitivity: Normal
Importance: Normal
MIME-Version: 1.0
From: Helpdesk Art Systems <helpdesk@artsystems.nl>
To: helpdesk@vandongen.eu
Reply-To: Helpdesk@artsystems.nl
Date: Fri, 05 Nov 2010 07:20:40 -0700 (PDT)
Subject: RE:berekening niet goed, schrijft Duitse km, niet geweest ?????????????
(CALLNR:3447) (DO NOT EDIT THIS:20003)
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64
X-SPAMSCORE: Hits by Solcon spam-filter: 2.8 points by spam03
pts rule name description
-- --------------- ---------------------------------
0.1 RDNS_NONE Delivered to trusted network by a host with no rDNS
0.0 HTML_MESSAGE BODY: HTML included in message
1.7 MIME_HTML_ONLY BODY: Message only has text/html MIME parts
1.1 HTML_MIME_NO_HTML_TAG HTML-only message, but there is no HTML tag
Return-Path: helpdesk@artsystems.nl
X-OriginalArrivalTime: 05 Nov 2010 14:20:39.0375 (UTC) FILETIME=
By design. If there's a text/plain part, I show that inline. If there is a text/html part, I treat it like an attachment. If you click on "show images inline", I show the html in iframes. It takes a lot of logic to make the html payload of an email safe enough to display inline. What gmail and yahoo mail do is not easy.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had the same problem after installing SP3 rolloup 1 on Exchange 2007. Check out these aritcles to fix it (this update changes the retrieval behavior settings, which causes this problem). After changing my POP3 Retrieval Behavior settings to "HTML and alternate text," then restarting the POP3 service, everything worked again.
The change wasn't in the coding, it was on the email server (Microsoft Exchange 2007, to be exact - I don't know if it applies to other versions of MS Exchange or not, but it does apply to MS Exchange 2007). This article sums it up better than I can (http://technet.microsoft.com/en-us/library/gg491244(EXCHG.80).aspx). I noticed that the hyperlink for this link in my above post did not include the last part, so you may need to copy and paste my link.
Basically, there is a setting within MS Exchange under the POP3 and also the IMAP4 settings that was changed with the Service Pack 3 rollup 1 update. That article explains it better than I can.
1.In the console tree, navigate to Server Configuration > Client Access.
2.In the work pane, click the POP3 and IMAP4 tab.
3.Select POP3 (or IMAP4, if using IMAP4) and then, in the result pane, under POP3 (or IMAP4, if using IMAP4) , click Properties.
4.On the POP3 (or IMAP4, if using IMAP4) Properties page, click the Retrieval Settings tab.
5.Under Message Retrieval, select a message format from the drop-down list under Message MIME format.
6.Click Apply, and then click OK to save your changes.
7. Restart the POP3 (or IMAP4, if using IMAP4) MS Exchange service
I use POP3 only, so I just change my POP3 setting, not the IMAP4 setting, then restarted the POP3 service.
You mentioned that it was working, then it stopped and started giving the "NO PLAIN TEXT MESSAGE BODY FOUND." Based on the date of your post, I just guessed that you might be using MS Exchange (2003/2007/2010) and recently installed the Exchange 2007 SP3 Update Rollup 1 Microsoft Update. Since I was having the same problem after installing that updated (it took me a week to figure out that was the problem), I was able to get it fixed a few minutes before posting. If you're not using MS Exchange as your email server, but it was working before, then I'd check your email server settings. Hopefully one of those articles will help troubleshoot your email server (if it's not MS Exchange).
Hopefully that makes sense!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We are using btnet version 3.6.2 which uses a gmail account for the emails that come in, there emails then create the bugs in the system.
Everything works wonderfully, except when users send emails that are in plain text format. When this happened the system was creating or adding onto bugs and all the bug said was "NO PLAIN TEXT MESSAGE BODY FOUND". I went through the code and found that on the insert_bug.aspx file that if "text/plain" or "text/html" was not found in the email then it just inserted the line "NO PLAIN TEXT MESSAGE BODY FOUND". So I updated the code do be as it is below. If the code did not find "text/plain" or "text/html" then I just used the body of the mime_massage object.
This seems to be working fine so far. Even though some of text in the body is not 100%, for example it adds "=20" to some of the lines and a few other things, but the guys looking into the bugs can read what is in the emails and carry on working.
I hope this can help someone else.
Here is the code I changed:
string comment = MyMime.extract_comment_text_from_email(mime_message, "text/plain");
if (comment == null)
{
comment = MyMime.extract_comment_text_from_email(mime_message, "text/html");
}
if (comment == null)
{
//comment = "NO PLAIN TEXT MESSAGE BODY FOUND";
comment = mime_message.Body;
}
Last edit: Warrickg 2013-09-17
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am sending a HTML email to my windows service - evey email that comes in says "NO PLAIN TEXT MESSAGE BODY FOUND " and the original is attached (html email) - why? Shouldnt I be able to read encoded html emails?
By design, I don't show the html emails because there's not a way to do that safely, easily. Click on "view images inline" to see them in iframes.
The weird thing is that at some point - the email was coming over with at least the comment/email body stripped of HTML tags and the original html email attached as text.html - not it is just bypassing the html strip process and attaching it. Or in some cases - it is including the html in the email body just not decoded… Just a bunch of html in the body of the email notice and in the comment field…
this is what my email is coming over as:
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40"; xmlns:q="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:rtc="http://microsoft.com/officenet/conferencing"; xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/"; xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/"; xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml"; xmlns:ppda="http://www.passport.com/NameSpace.xsd"; xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/"; xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/"; xmlns:ds="http://www.w3.org/2000/09/xmldsig#"; xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp"; xmlns:udc="http://schemas.microsoft.com/data/udc"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/"; xmlns:ec="http://www.w3.org/2001/04/xmlenc#"; xmlns:sp="http://schemas.microsoft.com/sharepoint/"; xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:udcs="http://schemas.microsoft.com/data/udc/soap"; xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile"; xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart"; xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/"; xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup"; xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig"; xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature"; xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006"; xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"; xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships"; xmlns:spwp="http://microsoft.com/sharepoint/webpartpages"; xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types"; xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages"; xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/"; xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService"; xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40">;
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!-
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
->
</style>
<!-><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><!-><!-><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><!->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=WordSection1>
<p class=MsoNormal>Test 22<o:p></o:p></p>
<p class=MsoNormal>This is a <b>test</b><o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='color:#0F243E'>Travis Baseflug</span><span
style='color:#0F243E'><o:p></o:p></span></p>
<p class=MsoNormal><b><span style='color:#0A1828'>PARA Healthcare Financial
Services <o:p></o:p></span></b></p>
<p class=MsoNormal><span style='color:#262626'>t: 800.999.3332 ext: 226 | e:
Tbaseflug@para-hcfs.com</span><span style='color:black'><o:p></o:p></span></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>
attachment: text.html
size: 4815 content-type: text/html
btnet_service_exe.config has a setting for capturing the raw text of an incoming message and dumping it to a file: "MessageOutputFile". The file is what I need to see to investigate the problem.
Same problem with this message:
+OK
Received: from mx01.solcon.nl () by ms1.gvdongen.local with Microsoft SMTPSVC(6.0.3790.4675);
Fri, 5 Nov 2010 15:20:39 +0100
Received: from (helo=mailrbl02.solcon.nl)
by mx01.solcon.nl with esmtp (Exim 4.69)
(envelope-from <helpdesk@artsystems.nl>)
id 1PEN9m-0003yE-Dx
for helpdesk@vandongen.eu; Fri, 05 Nov 2010 15:20:42 +0100
Received: from (helo=mail-ww0-f46.google.com)
by mailrbl02.solcon.nl with esmtp (Exim 4.71)
(envelope-from <helpdesk@artsystems.nl>)
id 1PEN9l-0000GS-DT
for helpdesk@vandongen.eu; Fri, 05 Nov 2010 15:20:41 +0100
Received: by wwd20 with SMTP id 20so3595663wwd.27
for <helpdesk@vandongen.eu>; Fri, 05 Nov 2010 07:20:41 -0700 (PDT)
Received: by 10.216.70.8 with SMTP id o8mr1138582wed.24.1288966841563;
Fri, 05 Nov 2010 07:20:41 -0700 (PDT)
Received: from SBEHEER (D4B27342.static.ziggozakelijk.nl )
by mx.google.com with ESMTPS id x23sm864021weq.10.2010.11.05.07.20.40
(version=TLSv1/SSLv3 cipher=RC4-MD5);
Fri, 05 Nov 2010 07:20:40 -0700 (PDT)
Message-ID: <4cd412b8.17edd80a.2944.37a2@mx.google.com>
Sensitivity: Normal
Importance: Normal
MIME-Version: 1.0
From: Helpdesk Art Systems <helpdesk@artsystems.nl>
To: helpdesk@vandongen.eu
Reply-To: Helpdesk@artsystems.nl
Date: Fri, 05 Nov 2010 07:20:40 -0700 (PDT)
Subject: RE:berekening niet goed, schrijft Duitse km, niet geweest ?????????????
(CALLNR:3447) (DO NOT EDIT THIS:20003)
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64
X-SPAMSCORE: Hits by Solcon spam-filter: 2.8 points by spam03
pts rule name description
-- --------------- ---------------------------------
0.1 RDNS_NONE Delivered to trusted network by a host with no rDNS
0.0 HTML_MESSAGE BODY: HTML included in message
1.7 MIME_HTML_ONLY BODY: Message only has text/html MIME parts
1.1 HTML_MIME_NO_HTML_TAG HTML-only message, but there is no HTML tag
Return-Path: helpdesk@artsystems.nl
X-OriginalArrivalTime: 05 Nov 2010 14:20:39.0375 (UTC) FILETIME=
QmVzdGUgQXJqZW4sPGJyPjxicj5IZXQgYmVyZWtlbmVuIHZhbiBkZSByaXR0ZW4gd29yZCBp
biBkZSB2b2xnZW5kZSB1cGRhdGUgYWFuZ2VwYXN0Ljxicj48YnI+Uml0bnIgMTc3NzIgaGVi
IGlrIHpvanVpc3QgaGFuZG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's a text/plain part, I show that inline. If there is a text/html part, I treat it like an attachment. If you click on "show images inline", I show the html in iframes. It takes a lot of logic to make the html payload of an email safe enough to display inline. What gmail and yahoo mail do is not easy.
Some backround on why displaying text/html email parts inline is a hard problem:
http://stackoverflow.com/questions/3885582/display-email-like-major-providers-gmail-yahoo
http://stackoverflow.com/questions/1130499/best-way-to-display-a-web-page-within-a-web-page
http://stackoverflow.com/questions/1555171/why-gmail-blocked-the-css
http://www.campaignmonitor.com/css/
I had the same problem after installing SP3 rolloup 1 on Exchange 2007. Check out these aritcles to fix it (this update changes the retrieval behavior settings, which causes this problem). After changing my POP3 Retrieval Behavior settings to "HTML and alternate text," then restarting the POP3 service, everything worked again.
http://technet.microsoft.com/en-us/library/gg491244(EXCHG.80).aspx
http://technet.microsoft.com/en-us/library/aa997869.aspx
Good luck!
What settign did you exactly change? Where in the code?
The change wasn't in the coding, it was on the email server (Microsoft Exchange 2007, to be exact - I don't know if it applies to other versions of MS Exchange or not, but it does apply to MS Exchange 2007). This article sums it up better than I can (http://technet.microsoft.com/en-us/library/gg491244(EXCHG.80).aspx). I noticed that the hyperlink for this link in my above post did not include the last part, so you may need to copy and paste my link.
Basically, there is a setting within MS Exchange under the POP3 and also the IMAP4 settings that was changed with the Service Pack 3 rollup 1 update. That article explains it better than I can.
The second link above explains in detail how to change this setting back (http://technet.microsoft.com/en-us/library/aa997869.aspx).
1.In the console tree, navigate to Server Configuration > Client Access.
2.In the work pane, click the POP3 and IMAP4 tab.
3.Select POP3 (or IMAP4, if using IMAP4) and then, in the result pane, under POP3 (or IMAP4, if using IMAP4) , click Properties.
4.On the POP3 (or IMAP4, if using IMAP4) Properties page, click the Retrieval Settings tab.
5.Under Message Retrieval, select a message format from the drop-down list under Message MIME format.
6.Click Apply, and then click OK to save your changes.
7. Restart the POP3 (or IMAP4, if using IMAP4) MS Exchange service
I use POP3 only, so I just change my POP3 setting, not the IMAP4 setting, then restarted the POP3 service.
You mentioned that it was working, then it stopped and started giving the "NO PLAIN TEXT MESSAGE BODY FOUND." Based on the date of your post, I just guessed that you might be using MS Exchange (2003/2007/2010) and recently installed the Exchange 2007 SP3 Update Rollup 1 Microsoft Update. Since I was having the same problem after installing that updated (it took me a week to figure out that was the problem), I was able to get it fixed a few minutes before posting. If you're not using MS Exchange as your email server, but it was working before, then I'd check your email server settings. Hopefully one of those articles will help troubleshoot your email server (if it's not MS Exchange).
Hopefully that makes sense!
We are using btnet version 3.6.2 which uses a gmail account for the emails that come in, there emails then create the bugs in the system.
Everything works wonderfully, except when users send emails that are in plain text format. When this happened the system was creating or adding onto bugs and all the bug said was "NO PLAIN TEXT MESSAGE BODY FOUND". I went through the code and found that on the insert_bug.aspx file that if "text/plain" or "text/html" was not found in the email then it just inserted the line "NO PLAIN TEXT MESSAGE BODY FOUND". So I updated the code do be as it is below. If the code did not find "text/plain" or "text/html" then I just used the body of the mime_massage object.
This seems to be working fine so far. Even though some of text in the body is not 100%, for example it adds "=20" to some of the lines and a few other things, but the guys looking into the bugs can read what is in the emails and carry on working.
I hope this can help someone else.
Here is the code I changed:
string comment = MyMime.extract_comment_text_from_email(mime_message, "text/plain");
if (comment == null)
{
comment = MyMime.extract_comment_text_from_email(mime_message, "text/html");
}
if (comment == null)
{
//comment = "NO PLAIN TEXT MESSAGE BODY FOUND";
comment = mime_message.Body;
}
Last edit: Warrickg 2013-09-17
Probably not till 2014, but the focus of the next release will be on parsing incoming emails. I know it's not perfect.
Warrick Goetsch's fix is in version 3.6.3 which I posted today. I would have given Warrick credit for the fix, but I didn't see his post until now.
There are two problems here. The second problem is the one mentioned by Travis Baseflug and also here: https://sourceforge.net/p/btnet/bugs/800/
The fix is I commented out some code as mentioned here: https://sourceforge.net/p/btnet/bugs/800/
That fix will be in the next version.