title: ASP.Net Environment.NewLine stops working half way through a script?
body: <p>I'm using a script to construct an email, and half way through the NewLines just quit working. I don't see any errors, nor do I can any when it's executed.</p>
  
  <p>Here is the code:</p>
  
  <p>message = message &amp; "Zoning Selections -" &amp; Environment.NewLine &amp; Environment.NewLine</p>
  
  <pre><code>message = message &amp; "Standard Report: " &amp; Request.QueryString("chkList0") &amp; Environment.NewLine
  message = message &amp; "Summary Zoning Report: " &amp; Request.QueryString("chkList1") &amp; Environment.NewLine
  message = message &amp; "Executive Summary: " &amp; Request.QueryString("chkList2") &amp; Environment.NewLine
  message = message &amp; "ZIP Report: " &amp; Request.QueryString("chkList3") &amp; Environment.NewLine
  message = message &amp; "Custom Report - Individual Products: " &amp; Request.QueryString("chkList4") &amp; Environment.NewLine
  message = message &amp; "Certificate of Occupancy: " &amp; Request.QueryString("chkList5") &amp; Environment.NewLine
  message = message &amp; "Building Code Violation: " &amp; Request.QueryString("chkList6") &amp; Environment.NewLine
  message = message &amp; "Code Compliance Violation: " &amp; Request.QueryString("chkList7") &amp; Environment.NewLine
  message = message &amp; "Fire Code Violation: " &amp; Request.QueryString("chkList8") &amp; Environment.NewLine
  message = message &amp; "Saftey Code Violation: " &amp; Request.QueryString("chkList9") &amp; Environment.NewLine
  message = message &amp; "Condemnation Report: " &amp; Request.QueryString("chkList10") &amp; Environment.NewLine
  
  message = message &amp; "Property Use: " &amp; Request.QueryString("property_use") &amp; Environment.NewLine
  </code></pre>
  
  <p>and here is the output:</p>
  
  <p>Zoning Selections -</p>
  
  <pre><code>Standard Report: yes
  Summary Zoning Report: yes
  Executive Summary: yes
  ZIP Report: yes
  Custom Report - Individual Products: yes Certificate of Occupancy: yes Building Code Violation: yes Code Compliance Violation: yes Fire Code Violation: yes Saftey Code Violation: yes Condemnation Report: yes Property Use: Office
  </code></pre>
  
  <p>As you can see, the NewLine works until half way through, and then it simply prints everything on the same line. (also, the other NewLines were added to the file at another time than the ones printing correctly)</p>
  
  <p>What am I missing?</p>
  
  <h2>EDIT</h2>
  
  <p>Apparently the plain-text formating of an email break all Environment.NewLine line breaks for the rest of the email when it encounters a line longer than 40-50 character (I was using Outlook 2013).</p>
  
  <p>My solution was simple, switch to HTML format and use <br> tags for line breaks instead.</p>