title: Append Line Breaks to Email
body: <p>So I have written a simple C# WinForms Application that has just one button control which I'll click on the 25th day of every month to notify my users to pay their domain subscription. I'll make it a windows service so that it can run automatically at a later stage when I have time. </p>
  
  <p>I got my implementation from @Tartori on this SO post: <a href="https://stackoverflow.com/questions/10940732/sending-emails-from-a-windows-forms-application">Sending emails from a windows forms application</a> which works the way I want it.</p>
  
  <p>Everything is fine but now the problem is that when I send a test mail to an email address which I have the same account setup on Outlook which is honkey dory but now when I view the same test mail using Gmail over the web it does not append the line breaks as per the below two screenshots:</p>
  
  <p><a href="https://i.stack.imgur.com/tzkYO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tzkYO.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/Tcdmu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tcdmu.png" alt="enter image description here"></a></p>
  
  <p>Please advise how I can overcome this. My code is as below:</p>
  
  <pre><code>        private void btnSendMail_Click(object sender, EventArgs e)
          {
              MailAddress from = new MailAddress("user@domain.co.za", "Name Surname");
  
              List&lt;MailAddress&gt; cc = new List&lt;MailAddress&gt;();
              cc.Add(new MailAddress("user2@domain.co.za", "Name2 Surname2"));
              string subjectText = "Friendly Domain Payment Reminder: " + DateTime.Now.ToShortDateString();
              SendEmail(subjectText, from, cc);
          }
  
  
  
          protected void SendEmail(string _subject, MailAddress _from, List&lt;MailAddress&gt; _cc, List&lt;MailAddress&gt; _bcc = null)
          {
              string Text = "";
              SmtpClient mailClient = new SmtpClient("mail.backlinkdesigns.co.za");
              MailMessage msgMail;
              Text = "Good day" + "&lt;/br&gt;" + "&lt;/br&gt;" + "I hope this message finds you well."                 msgMail = new MailMessage();
              msgMail.From = _from;
              MailAddress outlook= new MailAddress("user@domain.co.za", "User Surbname");
              MailAddress gmailAccount = new MailAddress("user@gmail.com", "Name Surname");
              msgMail.To.Add(outlook);
              msgMail.To.Add(gmailAccount );
  
              foreach (MailAddress addr in _cc)
              {
                  msgMail.CC.Add(addr);
              }
              if (_bcc != null)
              {
                  foreach (MailAddress addr in _bcc)
                  {
                      msgMail.Bcc.Add(addr);
                  }
              }
              msgMail.Subject = _subject;
              msgMail.Body = Text;
              msgMail.IsBodyHtml = true;
              mailClient.Send(msgMail);
              msgMail.Dispose();
  
              List&lt;MailAddress&gt; countVar = new List&lt;MailAddress&gt;();
              countVar.Add(outlook);
              countVar.Add(gmailAccount );
              var temp = countVar.Count;
              MessageBox.Show("Your email has been successfully sent to " + temp + " users show below: " + "\n\n" + outlook+ "\n" + gmailAccount + "\n" + "\n\n" + "From: " + _from, "Message Status", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1);
          }
  </code></pre>
  
  <p><strong>UPDATE:</strong>
  Attached below is the HTML Visualizer when I use <code>&lt;/br&gt;</code> to prove that I am getting the line breaks in code. They show fine in Outlook app but over the web it does not. Please may one try copy paste the code sample before posting a solution seeing as Environment.NewLine does not do the trick. </p>
  
  <p><a href="https://i.stack.imgur.com/cUIrm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cUIrm.png" alt="enter image description here"></a></p>