Forum Discussion

TTC-BlueHill1's avatar
TTC-BlueHill1
Copper Contributor
Jul 25, 2024

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.

 

# 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

4 Replies

  • TTC-BlueHill1's avatar
    TTC-BlueHill1
    Copper Contributor
    Wow!!!
    128 people see my question, and no one has answered. Is that difficult to do?
      • TTC-BlueHill1's avatar
        TTC-BlueHill1
        Copper Contributor
        Sir,
        I don't understand your reply. This is a forum for all kind issue not for excel only. I have posted all kind of work problem here in the past and they have been answered successfully.
        I just don't understand why I have to a different community.

Resources