Email text message line breaks not workinghttp://forums.asp.net/t/1220479.aspx/1?Email+text+message+line+breaks+not+workingThu, 27 Sep 2012 13:35:35 -040012204792176040http://forums.asp.net/p/1220479/2176040.aspx/1?Email+text+message+line+breaks+not+workingEmail text message line breaks not working <p>Im sending an email after a form is submitted, but not all the line breaks are occuring where they are supposed to, only some of them.</p> <p>&nbsp;</p> <pre class="prettyprint">string newline = System.Environment.NewLine; string body = newline &#43; &quot;******NOTE*******&quot; &#43; newline &#43; &quot;A form has been submitted from the customer website\n&quot; &#43; newline &#43; &quot;PLEASE USE THE CONTACT INFORMATION BELOW to reply to this user&quot; &#43;newline&#43; &quot;Do not reply directly to this email\r\nDetails Follow:&quot; &#43;newline&#43;newline&#43; msg.ToString();</pre>&nbsp;&nbsp; <p>&nbsp;The text starting with &quot;<span class="st">PLEASE USE THE CONTACT INFORMATION&quot;, does not break to the next line.&nbsp; If I put in two newline caracters &quot;\n\n&quot; it will break but skip a line like its suppose to.&nbsp; I want it to skip to the very next line.&nbsp; </span></p> <p>What gives ?</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> 2008-02-15T15:07:12-05:002176064http://forums.asp.net/p/1220479/2176064.aspx/1?Re+Email+text+message+line+breaks+not+workingRe: Email text message line breaks not working <p>Are you perchance using outlook to view your message?&nbsp; Sometimes outlook will remove extra line breaks.&nbsp; I think usually at the top of the message there is a &quot;Restore extra line breaks bar&quot; you can click to restore all line breaks.</p> 2008-02-15T15:17:02-05:002176104http://forums.asp.net/p/1220479/2176104.aspx/1?Re+Email+text+message+line+breaks+not+workingRe: Email text message line breaks not working <p>Yep. thats it, I just noticed this a few minutes ago.&nbsp; At the top of the email message, outlook displayed a message &quot;extra linebreaks in this message were removed&quot;</p> <p>[:@]&nbsp;</p> <p>&nbsp;</p> <p>Might be better to use html formatted email...&nbsp;</p> 2008-02-15T15:30:07-05:002176127http://forums.asp.net/p/1220479/2176127.aspx/1?Re+Email+text+message+line+breaks+not+workingRe: Email text message line breaks not working <p>Try including an empty space character at the end of each line. Certainlty seems to work for me.</p> 2008-02-15T15:38:56-05:005161152http://forums.asp.net/p/1220479/5161152.aspx/1?Re+Email+text+message+line+breaks+not+workingRe: Email text message line breaks not working <p></p> <blockquote><span class="icon-blockquote"></span> <h4>dotnetbohn</h4> <p></p> <p>Are you perchance using outlook to view your message?&nbsp; Sometimes outlook will remove extra line breaks.&nbsp; I think usually at the top of the message there is a &quot;Restore extra line breaks bar&quot; you can click to restore all line breaks.</p> <p></p> </blockquote> <p></p> <p>Interesting. Nice of outlook to do this for us (Not).&nbsp; I couldn't find a restore extra line breaks bar in outlook 2010, but I found the instructions which are:</p> <p>1.Open Outlook. <br> 2.On the File tab, click Options. <br> 3.In the Options dialog, click Mail. <br> 4.In the Message format section, clear the Remove extra line breaks in plain text messages check box. <br> 5.Click OK.</p> 2012-09-27T13:35:35-04:00