title: Powershell Email: How to send email with High Importance?
body: <p>I am trying to send an email with High Importance using <code>Powershell</code>. But when mail comes to inbox it does not mark with High Importance.</p>
  
  <p>Following is email script:</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>For High Importance i have added following but none is working when mail comes to outlook:</p>
  
  <p>1) <code>$EmailPriority = [System.Net.Mail.MailPriority]::High</code> </p>
  
  <p>Mail Comes but no importance</p>
  
  <p>2) <code>$Priority = [System.Net.Mail.MailPriority]::High</code></p>
  
  <p>Mail Comes but no importance</p>
  
  <p>3) <code>$Priority = "high"</code> </p>
  
  <p>Mail Comes but no importance</p>
  
  <p>4) <code>$EmailPriority = "high"</code></p>
  
  <p>Mail Comes but no importance</p>