Powershell Email: How to send email with High Importance?

Question:

I am trying to send an email with High Importance using Powershell. But when mail comes to inbox it does not mark with High Importance.

Following is email script:

For High Importance i have added following but none is working when mail comes to outlook:

1) $EmailPriority = [System.Net.Mail.MailPriority]::High

Mail Comes but no importance

2) $Priority = [System.Net.Mail.MailPriority]::High

Mail Comes but no importance

3) $Priority = "high"

Mail Comes but no importance

4) $EmailPriority = "high"

Mail Comes but no importance

Answer:

This code would send out a high priority email:

Source:

Powershell Email: How to send email with High Importance? by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply