How to Send a High Importance email through PowerShell Script
I am login through exchange server ‘Web Outlook App’ to send email out. The send email is working fine, but I want to know how to send a ‘Priority’ email. I’ve tried everything and the email send is not sending as ‘Priority’. Please let me know the syntax for Power Shell script. These are the one that try so far and none of them are working.
I am login through exchange server ‘Web Outlook App’ to send email out. The send email is working fine, but I want to know how to send a ‘Priority’ email. I’ve tried everything and the email send is not sending as ‘Priority’. Please let me know the syntax for Power Shell script. These are the one that try so far and none of them are working. # Send High Performance Email#[System.Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12#$emailPriority = [System.Net.Mail.MailPriority]::High#$emailPriority = “2”#$email.Priority = [System.Net.Mail.MailPriority]::High#$emailHighPriority =”High”#$emailMessage.Priority = [System.Net.Mail.MailPriority]::High#$mailMessage.Priority = [System.Net.Mail.MailPriority]::High#`$emailMessage.Priority = [System.Net.Mail.MailPriority]::High`#$emailMessage = New-Object System.Net.Mail.MailMessage#$emailMessage.Priority = 2#$email = New-Object System.Net.Mail.MailMessage#$email.Priority = [System.Net.Mail.MailPriority]::High Read More