title: Powershell EMail: How to add new line in email Body?
body: <p>Very new to Powershell. Wrote powershell script which is working perfectly but when it sends mail it does not show new line character in body. Following are configurations:</p>
  
  <pre><code>$EmailFrom = "monitoring@mydomainname.no"
  $EmailTo = "fatherazrael@tcs.com"
  $Subject = "Disk Space Low: $server"
  
  $Body = "Server Name:  $server, &lt;NEED NEW LINE&gt; Drive: C,  &lt;NEED NEW LINE&gt;  Total Size: $sizeGB,  &lt;NEED NEW LINE&gt; Space Left: $freeSpaceGB"
  
  $SMTPServer = "scan.opinergo.fn"
  $SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 25)
  #$SMTPClient.Credentials = New-Object System.Net.NetworkCredential("&lt;From mail ID&gt;", "Password");
  $SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body)   
  </code></pre>
  
  <p>In Body i have used following in place of ; searched around:</p>
  
  <p>1) %0d%0a - NOT WORKING when user checks mail</p>
  
  <p>2) \n - NOT WORKING when user checks mail</p>
  
  <p>3) &lt; br > - Not Working when user check mail</p>
  
  <p>Could anyone please suggest what else could i use to get new line or any modifications required in script?</p>